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