public ActionResult Details(int id)
        {
            var candidateDesignation = _candidateDesignationRepository.Get(id);

            return(CheckForNullAndExecute(candidateDesignation, () => View(candidateDesignation)));
        }
        public ActionResult Get(int id)
        {
            var apiResult = TryExecute(() => _candidateDesignationRepository.Get(id), "Candidate Designation fetched sucessfully");

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