コード例 #1
0
        public ActionResult Details(int id)
        {
            var candidateDesignation = _candidateDesignationRepository.Get(id);

            return(CheckForNullAndExecute(candidateDesignation, () => View(candidateDesignation)));
        }
コード例 #2
0
        public ActionResult Get(int id)
        {
            var apiResult = TryExecute(() => _candidateDesignationRepository.Get(id), "Candidate Designation fetched sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }