public IndexModel( Infrastructure.Data.GroceryContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public DetailsModel(IBackofficeService service, IOptions <BackofficeSettings> options, IOptions <EmailSettings> emailOptions, IEmailSender emailSender, Infrastructure.Data.GroceryContext context, IMapper mapper, IInvoiceService invoiceService) { _service = service; _settings = options.Value; _emailSettings = emailOptions.Value; _emailSender = emailSender; _context = context; _mapper = mapper; _invoiceService = invoiceService; }
public EditModel(Infrastructure.Data.GroceryContext context) { _context = context; }