Ejemplo n.º 1
0
        // GET: Users/Details/5
        public ActionResult Details(string userId)
        {
            RepositoryUser repo  = new RepositoryUser();
            IdentityUser   model = new IdentityUser();

            model = repo.GetById(userId);


            var viewModel = new UserViewModel()
            {
                UserId        = model.Id,
                Username      = model.UserName,
                Email         = model.Email,
                Role          = model.Roles.ToString(),
                AccountStatus = model.EmailConfirmed
            };

            return(View(viewModel));
        }