This commit is contained in:
2021-11-30 15:35:50 +01:00
parent 694e8732fe
commit e65b0801fc
8 changed files with 87 additions and 33 deletions
@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using zero.Api.Controllers;
namespace zero.Backoffice.Controllers;
[ApiController]
[ZeroAuthorize]
[DisableBrowserCache]
//[ServiceFilter(typeof(ModelStateValidationFilterAttribute))]
//[ServiceFilter(typeof(BackofficeFilterAttribute))]
public abstract class ZeroBackofficeController : ControllerBase
{
IZeroMapper _mapper;
protected IZeroMapper Mapper => _mapper ?? (_mapper = HttpContext?.RequestServices?.GetService<IZeroMapper>());
}