Exemple #1
0
 //Внедрение зависимостей
 public AccountController(CutterDbContext context)
 {
     db = context;
 }
 public HomeController(ILogger <HomeController> logger, CutterDbContext context, IWebHostEnvironment environment)
 {
     _logger = logger;
     db      = context;
     env     = environment;
 }
Exemple #3
0
 //Внедрение зависимостей
 public RedirectController(CutterDbContext context)
 {
     db = context;
 }