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