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; }
public FoodTablesController(IFoodTableRepository foodTableRepository, IIdentityService identityService, IDomainNotificationHandler domainNotificationHandler, IMediator mediator, ILogger <FoodTablesController> logger) : base(domainNotificationHandler, mediator, logger) { _foodTableRepository = foodTableRepository; _currentProfileId = identityService.GetUserId(); }