public ActionResult Edit(TaxEditModel taxEditModel) { PopulateDropDownLists(taxEditModel); if (ModelState.IsValid) { taxEditModel.UserId = CurrentUser; _taxService.EditTax(taxEditModel); return(RedirectToAction("Index")); } return(View(taxEditModel)); }
public void Put(int id, [FromBody] TaxDetails editedObj) { _TaxService.EditTax(editedObj); }