public ActionResult Detail(int Id)
        {
            var departments = Department.GetDepartment();
            var department  = departments.FirstOrDefault(x => x.Id == Id);

            return(View(department));
        }
예제 #2
0
        public IActionResult Index()
        {
            var departments = Department.GetDepartment();

            return(View(departments));
        }