public int DeleteProduct(int id)
 {
     _Proservice = new ProductService();
     if (_Proservice.Delete(id) == 1)
         return 1;
     else
         return 0;
 }
 public int UpdateProduct(Product or)
 {
     _Proservice = new ProductService();
     if (_Proservice.Update(or) == 1)
         return 1;
     else
         return 0;
 }
 public int AddProduct(Product or)
 {
     _Proservice = new ProductService();
     if (_Proservice.Add(or) == 1)
         return 1;
     else
         return 0;
 }
 public IQueryable<Product> GetProductByName(string name)
 {
     _Proservice = new ProductService();
     IQueryable<Product> _a = _Proservice.GetByName(name);
     return _a;
 }
 public IQueryable<Product> GetAllProduct()
 {
     _Proservice = new ProductService();
     IQueryable<Product> _a = _Proservice.GetAll();
     return _a;
 }
 public Product GetProduct(int id)
 {
     _Proservice = new ProductService();
     var ret = _Proservice.Get(id);
     return ret;
 }