public void Insert(int Periodid, int Accountid, double Perdiemrate, bool IsDeleted, DateTime?CreatedOn, string CreatedBy, DateTime?ModifiedOn, string ModifiedBy, double Mileagerate)
        {
            BillingPeriodAccount item = new BillingPeriodAccount();

            item.Periodid = Periodid;

            item.Accountid = Accountid;

            item.Perdiemrate = Perdiemrate;

            item.IsDeleted = IsDeleted;

            item.CreatedOn = CreatedOn;

            item.CreatedBy = CreatedBy;

            item.ModifiedOn = ModifiedOn;

            item.ModifiedBy = ModifiedBy;

            item.Mileagerate = Mileagerate;


            item.Save(UserName);
        }
        public void UpdatePerDiemRate(Int32 id, Double perdiemrate)
        {
            BillingPeriodAccount item = FetchByID(id)[0];

            item.Perdiemrate = perdiemrate;
            item.MarkOld();
            item.Save(UserName);
        }
        public void UpdateMileageRate(Int32 id, Double mileagerate)
        {
            BillingPeriodAccount item = FetchByID(id)[0];

            item.Mileagerate = mileagerate;
            item.MarkOld();
            item.Save(UserName);
        }
 public bool Destroy(object Id)
 {
     return(BillingPeriodAccount.Destroy(Id) == 1);
 }
 public bool Delete(object Id)
 {
     return(BillingPeriodAccount.Delete(Id) == 1);
 }