Example #1
0
 public HistoricalCrudService(
     IHistoricalCrudService <TId, TEntity> service,
     ICrudRepository repository,
     IUserInfoRepository userInfoRepository,
     IMapper mapper,
     IHistoricalCrudReadService <TId, TEntity> historicalCrudReadService)
 {
     _service                   = service;
     _repository                = repository;
     _userInfoRepository        = userInfoRepository;
     _mapper                    = mapper;
     _historicalCrudReadService = historicalCrudReadService;
     AutoCommit                 = false;
 }
 public UsersController(ICrudController <Guid, UserDto> crudController, IHistoricalCrudService <Guid, UserDto> historicalCrudService) : base(crudController, historicalCrudService)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HistoricalCrudAsyncController{T}"/> class.
 /// </summary>
 /// <param name="historicalCrudService">The historical crud service.</param>
 public HistoricalCrudControllerBase(ICrudController <T1, T2> crudController, IHistoricalCrudService <T1, T2> historicalCrudService)
 {
     _crudController        = crudController;
     _historicalCrudService = historicalCrudService;
 }
 public HistoricalAccountsAsyncController(IHistoricalCrudService <Account> service) : base(service)
 {
 }
Example #5
0
 public HistoricalCrudService(IHistoricalCrudService <Guid, T> service)
 {
     _service   = service;
     AutoCommit = false;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HistoricalCrudController{T}"/> class.
 /// </summary>
 /// <param name="historicalCrudService">The historical crud service.</param>
 public HistoricalCrudController(IHistoricalCrudService <T> historicalCrudService) : base(historicalCrudService)
 {
     _historicalCrudService = historicalCrudService;
 }
Example #7
0
 public AccountsController(IHistoricalCrudService <Account> service) : base(service)
 {
 }