コード例 #1
0
        public ActionResult Delete(int id)
        {
            var apiResult = TryExecute(() =>
            {
                _candidateDesignationRepository.Delete(id);
                _unitOfWork.Commit();
                return(true);
            }, "Candidate Designation deleted sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
 public ActionResult DeleteConfirmed(int id)
 {
     _candidateDesignationRepository.Delete(id);
     return(RedirectToAction("Index"));
 }