Пример #1
0
        public async Task <IActionResult> Index(ProfileViewModel model)
        {
            var user = await _userManager.GetUserAsync(User);


            await _users.SetUserPhoto(user.Id, "/images/" + model.UserPhoto + ".png");

            return(RedirectToAction(nameof(Index)));
        }