public async Task <IActionResult> EditUser(string id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            var user = await _userManager.FindByIdAsync(id);

            if (user != null)
            {
                if (user.VolunteerId != null)
                {
                    ViewData["Volunteers"]   = new SelectList(await _context.GetVolunteersForSelection(user.VolunteerId), "VId", "IdFullName");
                    ViewData["AppUserRoles"] = new SelectList(_roleManager.Roles.ToList(), "Id", "Name");
                }
                else
                {
                    ViewData["Volunteers"]   = new SelectList(await _context.GetVolunteersForSelection(-1), "VId", "IdFullName");
                    ViewData["AppUserRoles"] = new SelectList(_roleManager.Roles.ToList(), "Id", "Name");
                }


                return(View(new AppUserCreateViewModel
                {
                    Email = user.Email,
                    VolunteerId = user.VolunteerId,
                    AppUserRoleId = user.AppRoleId
                }));
            }
            return(RedirectToAction("Index"));
        }