public ActionResult Delete(int id) { int result = 0; if (UserRolePermissionForPage.Delete == true) { result = _iCommonService.GetValidateReference("Tax", id.ToString()); if (result > 0) { return(RedirectToAction(nameof(Index), new { noDelete = result })); } else { var deletedid = _iTaxService.DeleteTax(id); return(RedirectToAction(nameof(Index))); } } else { return(RedirectToAction("NotFound", "Error")); } }
public ActionResult DeleteConfirmed(int id) { _taxService.DeleteTax(id); return(Content(Url.Action("Index"))); }
public void Delete(int id) { _TaxService.DeleteTax(id); }