예제 #1
0
        public ActionResult UpdateTax(SubTaxMaster taxmaster)
        {
            MainApplication main = new MainApplication()
            {
                SubTaxMasters = new SubTaxMaster(),
            };

            main.SubTaxMasters.Id         = taxmaster.Id;
            main.SubTaxMasters.ToDate     = taxmaster.ToDate;
            main.SubTaxMasters.FromDate   = taxmaster.FromDate;
            main.SubTaxMasters.TaxType    = taxmaster.TaxType;
            main.SubTaxMasters.Percentage = taxmaster.Percentage;
            main.SubTaxMasters.City       = taxmaster.City;
            main.SubTaxMasters.Code       = taxmaster.Code;
            main.SubTaxMasters.Status     = "Active";
            main.SubTaxMasters.ModifiedOn = DateTime.Now;
            _subtaxservice.UpdateSubTax(main.SubTaxMasters);
            return(RedirectToAction("ViewTaxDetails/" + taxmaster.Id, "Tax"));
        }
예제 #2
0
 public void UpdateSubTax(SubTaxMaster tax)
 {
     _taxrepository.Update(tax);
     _unitofwork.Commit();
 }
예제 #3
0
 public void CreateSubTax(SubTaxMaster taxmaster)
 {
     _taxrepository.Add(taxmaster);
     _unitofwork.Commit();
 }