public AdminController(ApplicationDbContext context,ICRUDService<Product> _ProductService, IRUDService<Order> _orderService) { this.context = context; this._ProductService = _ProductService; this._orderService = _orderService; }
public UserController(ICRUDService <Product> _ProductService, IRUDService <Order> _orderService, ApplicationDbContext context) { this._ProductService = _ProductService; this._orderService = _orderService; this.context = context; }