public ActionResult DeleteConfirmed(int id) { var interviewRound = _interviewRoundRepository.Get(id); _interviewRoundRepository.Delete(interviewRound); _unitOfWork.Commit(); return(RedirectToAction("Details", "Candidates", new { id = interviewRound.CandidateId })); }
public ActionResult Delete(int id) { var apiResult = TryExecute(() => { _interviewRoundRepository.Delete(id); _unitOfWork.Commit(); return(true); }, "Interview deleted sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }