예제 #1
0
        public async Task <PartialViewResult> EditCollege(int?id)
        {
            ViewBag.currentAction = "EditCollege";
            College college = await _collegeService.GetByIdAsync(id.Value);

            EditViewModel model = new EditViewModel
            {
                Id    = college.ID,
                Name  = college.Name,
                Title = college.Title,
            };

            return(PartialView("EditModel", model));
        }