Пример #1
0
        /// <summary>
        /// Launch users profile page
        /// </summary>
        /// <returns>profile page</returns>
        public async Task <IActionResult> OnGet()
        {
            var user = await _userManager.GetUserAsync(User);

            UserName  = user.UserName;
            FirstName = user.FirstName;
            LastName  = user.LastName;
            Bio       = user.Bio;
            Email     = user.Email;
            Notes     = await _notes.GetNotesByUserID(user.Id);

            return(Page());
        }