Esempio n. 1
0
 public FoodCommandHandler(IFoodRepository foodRepository, IFoodTableRepository foodTableRepository, IIdentityService identityService, IMapper mapper, IMediator mediator, IUnitOfWork <ICommunityDbContext> unitOfWork, ILogger <FoodCommandHandler> logger)
     : base(identityService, mediator, unitOfWork, logger)
 {
     _foodRepository      = foodRepository;
     _foodTableRepository = foodTableRepository;
     _mapper           = mapper;
     _currentProfileId = GetCurrentProfileId();
 }
 public FoodTablesController(IFoodTableRepository foodTableRepository, IUnitOfWork <ICommunityDbContext> unitOfWork, IDomainNotificationHandler domainNotificationHandler, IMediator mediator, ILogger <FoodTablesController> logger)
     : base(domainNotificationHandler, mediator, logger)
 {
     _foodTableRepository = foodTableRepository;
     _unitOfWork          = unitOfWork;
 }
Esempio n. 3
0
 public FoodTablesController(IFoodTableRepository foodTableRepository, IIdentityService identityService, IDomainNotificationHandler domainNotificationHandler, IMediator mediator, ILogger <FoodTablesController> logger)
     : base(domainNotificationHandler, mediator, logger)
 {
     _foodTableRepository = foodTableRepository;
     _currentProfileId    = identityService.GetUserId();
 }