Rename old namespace
This commit is contained in:
parent
5be648929e
commit
e3a74ff18d
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using BlueWest.Data;
|
using BlueWest.Data;
|
||||||
using BlueWest.Data.Application;
|
using BlueWest.Data.Application;
|
||||||
using CodeLiturgy.Data.Capital;
|
using CodeLiturgy.Data.Application;
|
||||||
using MapTo;
|
using MapTo;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace CodeLiturgy.Data.Capital;
|
namespace CodeLiturgy.Data.Application;
|
||||||
|
|
||||||
public enum EnvironmentType
|
public enum EnvironmentType
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@ using System;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using MapTo;
|
using MapTo;
|
||||||
|
|
||||||
namespace CodeLiturgy.Data.Capital
|
namespace CodeLiturgy.Data.Application
|
||||||
{
|
{
|
||||||
|
|
||||||
[MapFrom(new []
|
[MapFrom(new []
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using MapTo;
|
using MapTo;
|
||||||
|
|
||||||
namespace CodeLiturgy.Data.Capital
|
namespace CodeLiturgy.Data.Application
|
||||||
{
|
{
|
||||||
[MapFrom(typeof(Site))]
|
[MapFrom(typeof(Site))]
|
||||||
public partial class SiteCreate
|
public partial class SiteCreate
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
namespace CodeLiturgy.Data.Application
|
||||||
|
{
|
||||||
|
public static class SiteDbExtensions
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace CodeLiturgy.Data.Capital
|
namespace CodeLiturgy.Data.Application
|
||||||
{
|
{
|
||||||
public class SiteEnvironment
|
public class SiteEnvironment
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using MapTo;
|
using MapTo;
|
||||||
|
|
||||||
namespace CodeLiturgy.Data.Capital
|
namespace CodeLiturgy.Data.Application
|
||||||
{
|
{
|
||||||
|
|
||||||
[MapFrom(typeof(Site))]
|
[MapFrom(typeof(Site))]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using CodeLiturgy.Data.Capital;
|
using CodeLiturgy.Data.Application;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using BlueWest.EfMethods;
|
using BlueWest.EfMethods;
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ namespace CodeLiturgy.Domain
|
||||||
{
|
{
|
||||||
[EfGetOneBy(nameof(Site.Id), typeof(SiteUnique))]
|
[EfGetOneBy(nameof(Site.Id), typeof(SiteUnique))]
|
||||||
[EfGetOne(typeof(SiteUnique))]
|
[EfGetOne(typeof(SiteUnique))]
|
||||||
[EfAddMethods(createType: typeof(SiteCreate), returnType: typeof(SiteUnique))]
|
|
||||||
[EfGetMany(typeof(SiteUnique))]
|
[EfGetMany(typeof(SiteUnique))]
|
||||||
|
|
||||||
public DbSet<Site> Sites { get; set; }
|
public DbSet<Site> Sites { get; set; }
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
using BlueWest.Data.Auth.Context.Users;
|
using BlueWest.Data.Auth.Context.Users;
|
||||||
using CodeLiturgy.Data.Capital;
|
using CodeLiturgy.Data.Application;
|
||||||
using CodeLiturgy.Domain;
|
using CodeLiturgy.Domain;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
@ -60,6 +60,7 @@ namespace CodeLiturgy.Views.Controllers
|
||||||
return new NotFoundResult();
|
return new NotFoundResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
[ProducesResponseType(StatusCodes.Status201Created)]
|
[ProducesResponseType(StatusCodes.Status201Created)]
|
||||||
[ProducesResponseType(StatusCodes.Status406NotAcceptable)]
|
[ProducesResponseType(StatusCodes.Status406NotAcceptable)]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
@ -68,7 +69,7 @@ namespace CodeLiturgy.Views.Controllers
|
||||||
var (success, site) = _siteDbContext.AddSite(siteToCreate);
|
var (success, site) = _siteDbContext.AddSite(siteToCreate);
|
||||||
if (!success) return new BadRequestResult();
|
if (!success) return new BadRequestResult();
|
||||||
return CreatedAtRoute(nameof(GetSiteById), new {countryId = site.Id}, site);
|
return CreatedAtRoute(nameof(GetSiteById), new {countryId = site.Id}, site);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue