Example #1
0
        // GET: Boss/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Department department = db.Department(id.Value);

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