public IActionResult Profile() { var user = _userManager.GetUserAsync(User).Result; var vm = new ProfileViewModel() { UserName = user.UserName, Email = user.Email, Phone = user.PhoneNumber, Posts = _postData.GetByPoster(user), Comments = _commentData.GetByCommenter(user) }; return(View(vm)); }