示例#1
0
 public AdminController(ApplicationDbContext context,ICRUDService<Product> _ProductService,
     IRUDService<Order> _orderService)
 {
     this.context = context;
     this._ProductService = _ProductService;
     this._orderService = _orderService;
 }
示例#2
0
        public UserController(ICRUDService <Product> _ProductService,
                              IRUDService <Order> _orderService, ApplicationDbContext context)
        {
            this._ProductService = _ProductService;
            this._orderService   = _orderService;

            this.context = context;
        }