public ActionResult Details(int id)
        {
            var certification = _certificationRepository.Get(id);

            return(CheckForNullAndExecute(certification, () => View(certification)));
        }
Beispiel #2
0
        public ActionResult Get(int id)
        {
            var apiResult = TryExecute(() => _certificationRepository.Get(id), "Certification Fetched sucessfully");

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