Exemplo n.º 1
0
        public async Task UpdateUserAbout(string userId, UpdateAboutVM updateAbout)
        {
            var user = await _userManager.FindByIdAsync(userId);

            user.about = updateAbout.about;
            await _userManager.UpdateAsync(user);
        }
        public async Task <IActionResult> UpdateAbout(UpdateAboutVM updateAbout)
        {
            await _userRepo.UpdateUserAbout(this.User.GetUserId(), updateAbout);

            return(Ok());
        }