public ActionResult Delete(int id) { var apiResult = TryExecute(() => { _certificationRepository.Delete(id); _unitOfWork.Commit(); return(true); }, "Certification deleted sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }
public ActionResult Delete(Certification c) { try { certificationRepository.Delete(c); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult DeleteConfirmed(int id) { _certificationRepository.Delete(id); _unitOfWork.Commit(); return(RedirectToAction("Index")); }
public void Delete(CertificationDto entity) { repo.Delete(entity); }