Given the following code:
public static bool UpdateUser(string userId,
string jobTitle)
{
return GetProvider().UpdateUser
(userId, jobTitle);
}
It needs to be changed and may not return a bool, for example:
UserProfile userProfile = new UserProfile();
userProfile.Initialize(user.UserName, true);
userProfile.ProfileJobTitle = jobTitle;
userProfile.Save();
Should you ensure it does return a bool or just change the method completely?
What's the right approach to this type of problem?