public async Task <ActionResult> UserProfile() { try { //MVCDEki HTTPCONTEXT gitti sadece context kaldı . context. diyincede olur var user = await _membershipTools.GetCurrentUser(User); var data = _membershipTools.ConvertProfile(user); return(View(data)); } catch (Exception ex) { TempData["Model"] = new ErrorViewModel() { Text = $"Bir hata oluştu {ex.Message}", ActionName = "UserProfile", ControllerName = "Account", ErrorCode = 500 }; return(RedirectToAction("Error", "Home")); } }