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