Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public bool Destroy(object SalesReasonID)
 {
     return(SalesReason.Destroy(SalesReasonID) == 1);
 }
Beispiel #4
0
 public bool Delete(object SalesReasonID)
 {
     return(SalesReason.Delete(SalesReasonID) == 1);
 }