public void Insert(string Description, decimal DiscountPct, string Type, string Category, DateTime StartDate, DateTime EndDate, int MinQty, int?MaxQty, Guid Rowguid, DateTime ModifiedDate) { SpecialOffer item = new SpecialOffer(); item.Description = Description; item.DiscountPct = DiscountPct; item.Type = Type; item.Category = Category; item.StartDate = StartDate; item.EndDate = EndDate; item.MinQty = MinQty; item.MaxQty = MaxQty; item.Rowguid = Rowguid; item.ModifiedDate = ModifiedDate; item.Save(UserName); }
public bool Destroy(object SpecialOfferID) { return(SpecialOffer.Destroy(SpecialOfferID) == 1); }
public bool Delete(object SpecialOfferID) { return(SpecialOffer.Delete(SpecialOfferID) == 1); }