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