Last ...
This commit is contained in:
@@ -4,7 +4,6 @@ using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xCommons.Configurations;
|
||||
using xCommons.Controllers;
|
||||
using xCommons.Extensions;
|
||||
using xCommons.Providers;
|
||||
using xExceptions.Constants;
|
||||
@@ -14,7 +13,8 @@ using xDataService.Interfaces;
|
||||
using System.Linq;
|
||||
using Microsoft.EntityFrameworkCore.Query;
|
||||
using System.Threading;
|
||||
using SQLitePCL;
|
||||
using xCommons.Controllers;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace xDataService.Controllers
|
||||
{
|
||||
@@ -23,7 +23,8 @@ namespace xDataService.Controllers
|
||||
/// </summary>
|
||||
/// <typeparam name="TEntity"></typeparam>
|
||||
/// <typeparam name="TKey"></typeparam>
|
||||
public abstract class XBaseEntityController<TEntity, TKey> : XBaseController, IXEntityControllerActions<TEntity, TKey>
|
||||
[AllowAnonymous]
|
||||
public abstract class XBaseRepositoryController<TEntity, TKey> : XBaseApiV1Controller, IXBaseRepositoryController<TEntity, TKey>
|
||||
where TEntity : XBaseEntity<TKey>
|
||||
{
|
||||
//
|
||||
@@ -37,8 +38,8 @@ namespace xDataService.Controllers
|
||||
|
||||
//
|
||||
#region Constructor ...
|
||||
protected XBaseEntityController(
|
||||
ILogger<XBaseEntityController<TEntity, TKey>> logger,
|
||||
protected XBaseRepositoryController(
|
||||
ILogger<XBaseRepositoryController<TEntity, TKey>> logger,
|
||||
XAppConfiguration appConfiguration,
|
||||
XValidationProvider validationProvider,
|
||||
IXBaseRepository<TEntity, TKey> repository,
|
||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore.Query;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -23,7 +24,8 @@ namespace xDataService.Controllers
|
||||
/// <typeparam name="TEntity"></typeparam>
|
||||
/// <typeparam name="TDto"></typeparam>
|
||||
/// <typeparam name="TKey"></typeparam>
|
||||
public abstract class XBaseEntityDtoController<TEntity, TDto, TKey> : XBaseController, IXDomainControllerActions<TEntity, TDto, TKey>
|
||||
[AllowAnonymous]
|
||||
public abstract class XBaseServiceController<TEntity, TDto, TKey> : XBaseApiV1Controller, IXBaseServiceController<TEntity, TDto, TKey>
|
||||
where TEntity : XBaseEntity<TKey>
|
||||
where TDto : XBaseEntityDto<TKey>
|
||||
{
|
||||
@@ -36,8 +38,8 @@ namespace xDataService.Controllers
|
||||
|
||||
//
|
||||
#region Constructor ...
|
||||
protected XBaseEntityDtoController(
|
||||
ILogger<XBaseEntityDtoController<TEntity, TDto, TKey>> logger,
|
||||
protected XBaseServiceController(
|
||||
ILogger<XBaseServiceController<TEntity, TDto, TKey>> logger,
|
||||
XAppConfiguration appConfiguration,
|
||||
XValidationProvider validationProvider,
|
||||
IXBaseRepositoryService<TEntity, TDto, TKey> repositoryService,
|
||||
Reference in New Issue
Block a user