private SMSLineNumber[] GetLines(string userName, string password) { var message = string.Empty; var sendReceive = new SendReceive(); var result = sendReceive.GetSMSLines(userName, password, ref message); if (!string.IsNullOrWhiteSpace(message)) { throw new Exception(message); } return(result); }