public ActionResult Edit(TaxEditModel taxEditModel)
        {
            PopulateDropDownLists(taxEditModel);

            if (ModelState.IsValid)
            {
                taxEditModel.UserId = CurrentUser;

                _taxService.EditTax(taxEditModel);

                return(RedirectToAction("Index"));
            }
            return(View(taxEditModel));
        }
Beispiel #2
0
 public void Put(int id, [FromBody] TaxDetails editedObj)
 {
     _TaxService.EditTax(editedObj);
 }