Ejemplo n.º 1
0
 public WeekMenuController(IUnitOfWorkAsync unitOfWork)
 {
     _unitOfWork = unitOfWork;
     _db = _unitOfWork.GetContext();
     _weekmenuService = new MenuForWeekService(_unitOfWork.RepositoryAsync<MenuForWeek>());
     _mfdDishPriceService=new MfdDishPriceService(_unitOfWork.RepositoryAsync<MfdDishPriceRelations>());
 }
Ejemplo n.º 2
0
 public WeekMenuController(IUnitOfWorkAsync unitOfWork)
 {
     _unitOfWork          = unitOfWork;
     _db                  = _unitOfWork.GetContext();
     _weekmenuService     = new MenuForWeekService(_unitOfWork.RepositoryAsync <MenuForWeek>());
     _mfdDishPriceService = new MfdDishPriceService(_unitOfWork.RepositoryAsync <MfdDishPriceRelations>());
 }
Ejemplo n.º 3
0
 public DishesController(IUnitOfWorkAsync unitOfWork)
 {
     _unitOfWork = unitOfWork;
     _mfdDishPriceService = new MfdDishPriceService(_unitOfWork.RepositoryAsync<MfdDishPriceRelations>());
 }
Ejemplo n.º 4
0
 public DishesController(IUnitOfWorkAsync unitOfWork)
 {
     _unitOfWork          = unitOfWork;
     _mfdDishPriceService = new MfdDishPriceService(_unitOfWork.RepositoryAsync <MfdDishPriceRelations>());
 }