public DishRepository(CanteenDbContext context, ICategoryRepository repoCtg, IFileLoader file) { _context = context; _repoCtg = repoCtg; _file = file; }
public SizePriceRepository(CanteenDbContext context) { _context = context; }
private readonly IFileLoader _file; // сервис сохранения изображения public CookShopRepository(CanteenDbContext context, IFileLoader file) // механизм внедрения зависимостей { _context = context; _file = file; }
public TokenController(CanteenDbContext context) { this._context = context; }
public ValuesController(CanteenDbContext context) { this._context = context; }
private readonly CanteenDbContext _context; // контекст работы с БД public CategoryRepository(CanteenDbContext context) // механизм внедрения зависимостей { _context = context; }