Пример #1
0
        public async Task <IActionResult> Privacy(string title, bool privacy)
        {
            AppUser user = await CurrentUser;

            user.ChangeUserPrivacy(privacy);
            await userManager.UpdateAsync(user);

            return(RedirectToAction("Index"));
        }