public static ProductType InsertProductType(string name, string description) { ProductType pt = ProductTypeFactory.InsertProductType(name, description); db.ProductTypes.Add(pt); db.SaveChanges(); return(pt); }
public static ProductType InsertProductType(string name, string description) { ProductType pt = ProductTypeFactory.InsertProductType(name, description); db.ProductTypes.Add(pt); db.SaveChanges(); return(pt); }