Exemple #1
0
        public ActionResult Get(int id)
        {
            var apiResult = TryExecute(() => _requirementCategoryRepository.Get(id), "Requirement Category fetched sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }
        public ActionResult Details(int id)
        {
            var requirementCategory = _requirementCategoryRepository.Get(id);

            return(CheckForNullAndExecute(requirementCategory, () => View(requirementCategory)));
        }