public UserInfo GetUserInfo(string key, string username, string password) { Exception exception; if (!IsValidUser(username, password, out exception)) { throw exception; } var info = new UserInfo(); // TODO: Implement your own logic to get user info objects and set the info return info; }
public UserInfo GetUserInfo(string key, string username, string password) { if (ValidateUser(username, password)) { var info = new UserInfo(); // TODO: Implement your own logic to get user info objects and set the info return info; } throw new XmlRpcFaultException(0, "User is not valid!"); }