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); }
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); }