public ActionResult DeleteConfirmed(int id) { _requirementCategoryRepository.Delete(id); _unitOfWork.Commit(); return(RedirectToAction("Index")); }
public ActionResult Delete(int id) { var apiResult = TryExecute(() => { _requirementCategoryRepository.Delete(id); _unitOfWork.Commit(); return(true); }, "Requirement Category deleted sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }