public DishRepository(CanteenDbContext context, ICategoryRepository repoCtg,
                       IFileLoader file)
 {
     _context = context;
     _repoCtg = repoCtg;
     _file    = file;
 }
 public SizePriceRepository(CanteenDbContext context)
 {
     _context = context;
 }
Esempio n. 3
0
        private readonly IFileLoader _file;                                   // сервис сохранения изображения

        public CookShopRepository(CanteenDbContext context, IFileLoader file) // механизм внедрения зависимостей
        {
            _context = context;
            _file    = file;
        }
Esempio n. 4
0
 public TokenController(CanteenDbContext context)
 {
     this._context = context;
 }
Esempio n. 5
0
 public ValuesController(CanteenDbContext context)
 {
     this._context = context;
 }
        private readonly CanteenDbContext _context;         // контекст работы с БД

        public CategoryRepository(CanteenDbContext context) // механизм внедрения зависимостей
        {
            _context = context;
        }