public HomeController(ILogger <HomeController> logger, GuideAppContext context) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _context = context; }
public ContactInfoApiController(GuideAppContext context) { _context = context; }
public ContactApiController(GuideAppContext guideAppContext) { _guideAppContext = guideAppContext; }
public ContactInformationController(GuideAppContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
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)); }
public GuideAppContext Init() => dbContext ?? (dbContext = new GuideAppContext());