public ActionResult ShowProfile() { BusinessLayerResult <SiteUser> res = siteUserManager.GetUserById(CurrentSession.User.Id); if (res.Errors.Count > 0) { ErrorViewModel errorNotifyObj = new ErrorViewModel() { Title = "Hata Oluştu", Items = res.Errors }; return(View("Error", errorNotifyObj)); } return(View(res.Result)); }