Rename old namespace

This commit is contained in:
code liturgy 2022-11-17 22:39:36 +00:00
parent 5be648929e
commit e3a74ff18d
9 changed files with 18 additions and 10 deletions

View File

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BlueWest.Data;
using BlueWest.Data.Application;
using CodeLiturgy.Data.Capital;
using CodeLiturgy.Data.Application;
using MapTo;
using Microsoft.AspNetCore.Identity;

View File

@ -1,4 +1,4 @@
namespace CodeLiturgy.Data.Capital;
namespace CodeLiturgy.Data.Application;
public enum EnvironmentType
{

View File

@ -2,7 +2,7 @@ using System;
using System.ComponentModel.DataAnnotations.Schema;
using MapTo;
namespace CodeLiturgy.Data.Capital
namespace CodeLiturgy.Data.Application
{
[MapFrom(new []

View File

@ -1,6 +1,6 @@
using MapTo;
namespace CodeLiturgy.Data.Capital
namespace CodeLiturgy.Data.Application
{
[MapFrom(typeof(Site))]
public partial class SiteCreate

View File

@ -0,0 +1,8 @@
namespace CodeLiturgy.Data.Application
{
public static class SiteDbExtensions
{
}
}

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace CodeLiturgy.Data.Capital
namespace CodeLiturgy.Data.Application
{
public class SiteEnvironment
{

View File

@ -1,7 +1,7 @@
using System;
using MapTo;
namespace CodeLiturgy.Data.Capital
namespace CodeLiturgy.Data.Application
{
[MapFrom(typeof(Site))]

View File

@ -1,4 +1,4 @@
using CodeLiturgy.Data.Capital;
using CodeLiturgy.Data.Application;
using Microsoft.EntityFrameworkCore;
using BlueWest.EfMethods;
@ -9,7 +9,6 @@ namespace CodeLiturgy.Domain
{
[EfGetOneBy(nameof(Site.Id), typeof(SiteUnique))]
[EfGetOne(typeof(SiteUnique))]
[EfAddMethods(createType: typeof(SiteCreate), returnType: typeof(SiteUnique))]
[EfGetMany(typeof(SiteUnique))]
public DbSet<Site> Sites { get; set; }

View File

@ -1,5 +1,5 @@
using BlueWest.Data.Auth.Context.Users;
using CodeLiturgy.Data.Capital;
using CodeLiturgy.Data.Application;
using CodeLiturgy.Domain;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@ -60,6 +60,7 @@ namespace CodeLiturgy.Views.Controllers
return new NotFoundResult();
}
/*
[ProducesResponseType(StatusCodes.Status201Created)]
[ProducesResponseType(StatusCodes.Status406NotAcceptable)]
[HttpPost]
@ -68,7 +69,7 @@ namespace CodeLiturgy.Views.Controllers
var (success, site) = _siteDbContext.AddSite(siteToCreate);
if (!success) return new BadRequestResult();
return CreatedAtRoute(nameof(GetSiteById), new {countryId = site.Id}, site);
}
}*/
}
}