public bool CreateProductCategory(string ProductType) { tbl_ProductType obj = new tbl_ProductType(); obj.Product_Type = ProductType; return(TypeofProduct.CreateProductCategory(obj)); }
public bool CreateProductCategory(tbl_ProductType ProductType) { create.tbl_ProductType.AddObject(ProductType); return(create.SaveChanges() > 0); }