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 BlueWest.Data;
|
||||
using BlueWest.Data.Application;
|
||||
using CodeLiturgy.Data.Capital;
|
||||
using CodeLiturgy.Data.Application;
|
||||
using MapTo;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace CodeLiturgy.Data.Capital;
|
||||
namespace CodeLiturgy.Data.Application;
|
||||
|
||||
public enum EnvironmentType
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@ using System;
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using MapTo;
|
||||
|
||||
namespace CodeLiturgy.Data.Capital
|
||||
namespace CodeLiturgy.Data.Application
|
||||
{
|
||||
|
||||
[MapFrom(new []
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using MapTo;
|
||||
|
||||
namespace CodeLiturgy.Data.Capital
|
||||
namespace CodeLiturgy.Data.Application
|
||||
{
|
||||
[MapFrom(typeof(Site))]
|
||||
public partial class SiteCreate
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
namespace CodeLiturgy.Data.Application
|
||||
{
|
||||
public static class SiteDbExtensions
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace CodeLiturgy.Data.Capital
|
||||
namespace CodeLiturgy.Data.Application
|
||||
{
|
||||
public class SiteEnvironment
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using MapTo;
|
||||
|
||||
namespace CodeLiturgy.Data.Capital
|
||||
namespace CodeLiturgy.Data.Application
|
||||
{
|
||||
|
||||
[MapFrom(typeof(Site))]
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue