public AdminController(ICookShopRepository repoCS, ICategoryRepository repoCtg,
                        IDishRepository repoD, ISizePriceRepository repoSP) // механизм внедрения зависимостей
 {
     _repoCS  = repoCS;
     _repoCtg = repoCtg;
     _repoD   = repoD;
     _repoSP  = repoSP;
 }
Beispiel #2
0
 public HomeController(ICookShopRepository repo)
 {
     _repo = repo;
 }
 public CookShopController(ICookShopRepository repo) // внедрение зависимостей
 {
     _repo = repo;
 }