private IList <Dialog> GetConversations(string key) { long isGuid; var profile = ParseKey(key, out isGuid); if (profile != null) { int total; const int pageSize = 1000; var dialogs = ConversationService.GetDialogs(profile.Id, out total, 1, pageSize); return(dialogs); } return(null); }