// GET: Departments/Details/5 public ActionResult Details(int id) { Department department = departmentServices.FindDepartmentById(id); if (department == null) { return(HttpNotFound()); } return(View(department)); }