public ActionResult Profile() { try { _profileModel.CurrentUserID = (int)Session["userId"]; _profileModel.UserRegisterID = _loginBusiness.findRegisterIdByUserId(_profileModel.CurrentUserID); _profileModel.Name = _registerBusiness.findById(_profileModel.UserRegisterID).Name; _profileModel.Surname = _registerBusiness.findById(_profileModel.UserRegisterID).Surname; _profileModel.CountryName = _countryBusiness.getCountryNameById((int)(_registerBusiness.findById(_profileModel.UserRegisterID).CountryID)); _profileModel.IconUrl = _iconBusiness.getIconUrl((int)_profileBusiness.getProfileInfo(_profileModel.CurrentUserID).IconID); _profileModel.SharingsCount = _postBusiness.getUserArticlePost(_profileModel.CurrentUserID).Count; _profileModel.FollowersCount = _profileBusiness.getAllFollowerByProfileId(_profileBusiness.getProfileId(_profileModel.CurrentUserID)).Count; return(View(_profileModel)); } catch (Exception ex) { return(View(new ProfileModel())); } }