Exemplo n.º 1
0
        // GET: Departments/Details/5
        public ActionResult Details(int?id)
        {
            if (!id.HasValue)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Department department = p_repo.GetDepartment(id.Value);

            if (department == null)
            {
                return(HttpNotFound());
            }
            return(View(department));
        }