Example #1
0
        public ActionResult UserProfile()
        {
            var currentUser = UserManager.Current();
            var profile = new ProfileModel();
            if (currentUser != null)
            {
                profile = _userService.UserProfile(currentUser.Row_Id);
            }

            return PartialView("Controls/client/_UserProfile", profile);
        }
Example #2
0
        public ActionResult UserProfile(string userid)
        {
            var profile = new ProfileModel();
             if (!string.IsNullOrEmpty(userid))
            {

                profile = _userService.UserProfile(int.Parse(userid));
            }

            return PartialView("Controls/User/_UserProfile", profile);
        }