public ProductController(MariContext context) { _context = context; if (_context.Products.Count() == 0) { _context.Products.Add(new Product { ID = 1, NameEN = "Dummy", Code = "DUMMY" }); _context.SaveChanges(); } }
public OrderService(IOptions <AppSettings> appSettings, MariContext context, IHttpContextAccessor httpContextAccessor) { _appSettings = appSettings.Value; _context = context; _httpContextAccessor = httpContextAccessor; }
public ProductPriceController(MariContext context) { _context = context; }
public UserService(IOptions <AppSettings> appSettings, MariContext context, ILogger <UserService> logger) { _appSettings = appSettings.Value; _context = context; _logger = logger; }
public OrderDetailController(MariContext context) { _context = context; }
public OrderPoolController(MariContext context) { _context = context; }
public SupplierController(MariContext context) { _context = context; }
public CustomerController(MariContext context) { _context = context; }
public InvoiceController(MariContext context) { _context = context; }