public int Create(int WareID, int WarePriceGroupID, int?DocumentID, bool AllowDiscount, decimal PurchasePriceForUnit, decimal SalePriceForUnit, bool Active) { int result = 1; WarePrice sr = WarePrice.CreateWarePrice(1, WareID, WarePriceGroupID, AllowDiscount, PurchasePriceForUnit, SalePriceForUnit, Active); context.AddToWarePrices(sr); return(result); }