public void Insert(string Name, string ReasonType, DateTime ModifiedDate) { SalesReason item = new SalesReason(); item.Name = Name; item.ReasonType = ReasonType; item.ModifiedDate = ModifiedDate; item.Save(UserName); }
public void Update(int SalesReasonID, string Name, string ReasonType, DateTime ModifiedDate) { SalesReason item = new SalesReason(); item.SalesReasonID = SalesReasonID; item.Name = Name; item.ReasonType = ReasonType; item.ModifiedDate = ModifiedDate; item.MarkOld(); item.Save(UserName); }
public bool Destroy(object SalesReasonID) { return(SalesReason.Destroy(SalesReasonID) == 1); }
public bool Delete(object SalesReasonID) { return(SalesReason.Delete(SalesReasonID) == 1); }