예제 #1
0
        /*      public DepartmentController(PeopleProRepo peopleProRepo)
         *    {
         *        this.peopleProRepo = peopleProRepo;
         *    }            */


        // GET: Department/Details/5
        public ActionResult Details(int?id)
        {
            if (!id.HasValue)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Department department = m_repo.GetDepartmentById(id.Value);

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

            return(View(department));
        }