Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
 }
Exemplo n.º 4
0
 public DropDownController(PCPTDataContext context)
 {
     db        = context;
     viewModel = new DropDownViewModel(db);
 }
Exemplo n.º 5
0
 public KitchenController(PCPTDataContext context)
 {
     _context = context;
     db       = new Repository <KitchenModel>(context);
 }
Exemplo n.º 6
0
 public Repository(PCPTDataContext context)
 {
     this.context = context;
     dbSet        = context.Set <T>();
 }
Exemplo n.º 7
0
 public DriveThruController(PCPTDataContext context)
 {
     _context = context;
     db       = new Repository <DriveThruModel>(context);
 }
Exemplo n.º 8
0
 public MainController(PCPTDataContext context)
 {
     db        = context;
     viewModel = new PocMainViewModel(db);
 }