Navigating to Account/Followers, clicking on a follower's link, throws NULL Reference exception cause UserId is null at:
var followers = Mapper.Map<IEnumerable, IEnumerable>(users);
id will be null when reaching Account/UserProfile(string id)
var user = userService.GetUserProfile(id);
Changing both FollowingViewModel and FollowersViewModel to have string Id (not UserId) and their respective partial views will solve the problem.
Navigating to Account/Followers, clicking on a follower's link, throws NULL Reference exception cause UserId is null at:
var followers = Mapper.Map<IEnumerable, IEnumerable>(users);
id will be null when reaching Account/UserProfile(string id)
var user = userService.GetUserProfile(id);
Changing both FollowingViewModel and FollowersViewModel to have string Id (not UserId) and their respective partial views will solve the problem.