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