Exemplo n.º 1
0
        public ActionResult Edit(int id)
        {
            var user = _repo.FindById(id);

            if (user == null)
            {
                throw new HttpException(404, "User not found");
            }

            return(View(new AdminBaseViewModel <AdminUser> {
                Item = user
            }));
        }