public ActionResult Edit(int id) { var currentUser = users.GetList().FirstOrDefault(u => u.Id == id); return(View(UserViewModel.GetViewModel(currentUser, awards.GetList()))); }
// 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()))); }