public static bool DeleteProduct(long Id) { SqlProductProvider provider = new SqlProductProvider(); return(provider.DeleteProduct(Id)); }
public static List <Product> GetAllProduct() { SqlProductProvider provider = new SqlProductProvider(); return(provider.GetAllProduct()); }
public static long InsertProduct(Product product) { SqlProductProvider provider = new SqlProductProvider(); return(provider.InsertProduct(product)); }
public static bool UpdateProduct(Product product) { SqlProductProvider provider = new SqlProductProvider(); return(provider.UpdateProduct(product)); }
public static Product GetProductById(long?id) { SqlProductProvider provider = new SqlProductProvider(); return(provider.GetProductById(id)); }
public static List <Product> GetProductsBySearchKey(string searchKey) { SqlProductProvider provider = new SqlProductProvider(); return(provider.GetProductsBySearchKey(searchKey)); }
public static List <Product> GetAllProductsBySubCategoryId(long id) { SqlProductProvider provider = new SqlProductProvider(); return(provider.GetAllProductsBySubCategoryId(id)); }