public void Insert(int?OrderId, decimal?ValueX, int?TypeId, int?UserId, DateTime?DateCreated)
        {
            PaymentHistory item = new PaymentHistory();

            item.OrderId = OrderId;

            item.ValueX = ValueX;

            item.TypeId = TypeId;

            item.UserId = UserId;

            item.DateCreated = DateCreated;


            item.Save(UserName);
        }
        public void Update(int Id, int?OrderId, decimal?ValueX, int?TypeId, int?UserId, DateTime?DateCreated)
        {
            PaymentHistory item = new PaymentHistory();

            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.OrderId = OrderId;

            item.ValueX = ValueX;

            item.TypeId = TypeId;

            item.UserId = UserId;

            item.DateCreated = DateCreated;

            item.Save(UserName);
        }
 public bool Destroy(object Id)
 {
     return(PaymentHistory.Destroy(Id) == 1);
 }
 public bool Delete(object Id)
 {
     return(PaymentHistory.Delete(Id) == 1);
 }