public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Skill skill = _skillService.FindByIdIncludes(id); if (skill == null) { return(HttpNotFound()); } return(View(skill)); }