コード例 #1
0
        public ActionResult Edit(int id)
        {
            var currentUser = users.GetList().FirstOrDefault(u => u.Id == id);

            return(View(UserViewModel.GetViewModel(currentUser, awards.GetList())));
        }
コード例 #2
0
        // GET: User/Details/5
        public ActionResult Details(int id)
        {
            User u = users.GetList().First(s => s.Id == id);

            return(View(UserViewModel.GetViewModel(u, awards.GetList())));
        }