Refactor TestControllerBase and update using directives
Consolidated using directives and removed unnecessary ones. Added attributes to the namespace declaration for API routing and deprecation notice. Simplified the class definition by removing the IUnique<TId> constraint and cleaned up the constructor by eliminating empty braces.
This commit is contained in:
parent
231140505e
commit
f5d33846d5
@ -1,18 +1,18 @@
|
||||
using DigitalData.Core.API;
|
||||
using DigitalData.Core.Abstraction.Application;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using DigitalData.Core.Abstractions;
|
||||
|
||||
namespace EnvelopeGenerator.Web.Controllers.Test
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/test/[controller]")]
|
||||
public class TestControllerBase<TCRUDService, TDto, TEntity, TId> : BasicCRUDControllerBase<TCRUDService, TDto, TEntity, TId>
|
||||
namespace EnvelopeGenerator.Web.Controllers.Test;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/test/[controller]")]
|
||||
[Obsolete("Use MediatR")]
|
||||
public class TestControllerBase<TCRUDService, TDto, TEntity, TId> : BasicCRUDControllerBase<TCRUDService, TDto, TEntity, TId>
|
||||
where TCRUDService : ICRUDService<TDto, TDto, TEntity, TId>
|
||||
where TDto : class, IUnique<TId> where TEntity : class, IUnique<TId>
|
||||
{
|
||||
where TDto : class
|
||||
where TEntity : class
|
||||
{
|
||||
public TestControllerBase(ILogger logger, TCRUDService service) : base(logger, service)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user