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")); }
public void UpdateSubTax(SubTaxMaster tax) { _taxrepository.Update(tax); _unitofwork.Commit(); }
public void CreateSubTax(SubTaxMaster taxmaster) { _taxrepository.Add(taxmaster); _unitofwork.Commit(); }