//
        // GET: /Users/
        public async Task <ActionResult> Index(string message)
        {
            var modelfiles = new ApplicationUserPageViewModel {
                Users = await UserManager.Users.ToListAsync(), OkMessage = message
            };

            return(View("Index", "_Layout", modelfiles));
        }
        //
        // GET: /Users/Details/5
        public async Task <ActionResult> Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var user = await UserManager.FindByIdAsync(id);

            ViewBag.RoleNames = await UserManager.GetRolesAsync(user.Id);

            List <ApplicationUser> users = new List <ApplicationUser>();

            users.Add(user);
            var modelfiles = new ApplicationUserPageViewModel {
                Users = users
            };

            return(View("Details", "_Layout", modelfiles));
        }
        //
        // GET: /Users/Delete/5
        public async Task <ActionResult> Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var user = await UserManager.FindByIdAsync(id);

            if (user == null)
            {
                return(HttpNotFound());
            }
            List <ApplicationUser> users = new List <ApplicationUser>();

            users.Add(user);
            var modelfiles = new ApplicationUserPageViewModel {
                Users = users
            };

            return(View("Delete", "_Layout", modelfiles));
        }