public PocMainViewModel(PCPTDataContext context) { _context = context; gObj = new Repository <GeneralModel>(_context); dtObj = new Repository <DriveThruModel>(_context); fcObj = new Repository <FrontCounterModel>(_context); kObj = new Repository <KitchenModel>(_context); }
public DropDownViewModel(PCPTDataContext context) { _context = context; CountryObj = new Repository <Country>(_context); DayPartObj = new Repository <DayPart>(_context); DayPartVersionObj = new Repository <DayPartVersion>(_context); DTtypeObj = new Repository <DTtype>(_context); DrinkModeObj = new Repository <DrinkMode>(_context); DTRemoteOTObj = new Repository <DTRemoteOT>(_context); ServModeObj = new Repository <ServMode>(_context); FCDrinkModeObj = new Repository <FCDrinkMode>(_context); FCRemoteOTObj = new Repository <FCRemoteOT>(_context); OperatingPlatformObj = new Repository <OperatingPlatform>(_context); FryerWallObj = new Repository <FryerWall>(_context); ArchDispenserObj = new Repository <ArchDispenser>(_context); }
public FrontCounterController(PCPTDataContext context) { _context = context; db = new Repository <FrontCounterModel>(context); }
public DropDownController(PCPTDataContext context) { db = context; viewModel = new DropDownViewModel(db); }
public KitchenController(PCPTDataContext context) { _context = context; db = new Repository <KitchenModel>(context); }
public Repository(PCPTDataContext context) { this.context = context; dbSet = context.Set <T>(); }
public DriveThruController(PCPTDataContext context) { _context = context; db = new Repository <DriveThruModel>(context); }
public MainController(PCPTDataContext context) { db = context; viewModel = new PocMainViewModel(db); }