public HomeController(ILogger <HomeController> logger, GuideAppContext context)
 {
     _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
     _context = context;
 }
Пример #2
0
 public ContactInfoApiController(GuideAppContext context)
 {
     _context = context;
 }
 public ContactApiController(GuideAppContext guideAppContext)
 {
     _guideAppContext = guideAppContext;
 }
 public ContactInformationController(GuideAppContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Пример #5
0
 public ContactController(GuideAppContext context, ILogger <ContactController> logger, IDistributedCache distributedCache)
 {
     _context          = context ?? throw new ArgumentNullException(nameof(context));
     _logger           = logger ?? throw new ArgumentNullException(nameof(logger));
     _distributedCache = distributedCache ?? throw new ArgumentNullException(nameof(distributedCache));
 }
Пример #6
0
 public GuideAppContext Init() => dbContext ?? (dbContext = new GuideAppContext());