public static void Initialize(MediStockContext context) { context.Database.EnsureCreated(); // Seed any required data here // TODO: Find that which data can be inserted when database is created and seed that data here }
public OrderController( IOrderService orderService, IWebHostEnvironment environment, MediStockContext context ) { _env = environment; _orderService = orderService; _orderService = orderService; _context = context; }
public MedicineController(IMedicineService medicineService, IWebHostEnvironment environment, ICategoryService categoryService, MediStockContext context ) { _env = environment; _medicineService = medicineService; _medicineService = medicineService; _categoryService = categoryService; _context = context; }
public CartController( IWebHostEnvironment environment, MediStockContext context, IMedicineService medicineService, ShoppingCart shoppingCart ) { _env = environment; _context = context; _medicineService = medicineService; _shoppingCart = shoppingCart; }
//const int pageSize = 3; #endregion #region Ctor public HomeController(ICategoryService categoryService, MediStockContext context) { _categoryService = categoryService; _context = context; }
public UserService(MediStockContext context) { this.context = context; }
public MedicineProductViewComponent(MediStockContext context) { _context = context; }
public CategoryService(MediStockContext context) { this.context = context; }
//private readonly IRepository<Medicine> _medicineRepository; #endregion #region Ctor public MedicineService(MediStockContext context) { this.context = context; }
public SliderMenuViewComponent(MediStockContext context) { _context = context; }
//const int pageSize = 3; #endregion #region Ctor public CategoryMenuViewComponent(ICategoryService categoryService, MediStockContext context) { _categoryService = categoryService; _context = context; }
public Cart(MediStockContext context) { }
public ShoppingCart(MediStockContext context) { _context = context; }
public ProductController(MediStockContext context) { _context = context; }