public static Chat GetChat(LoginUser loginUser, int chatID) { Chats chats = new Chats(loginUser); chats.LoadByChatID(chatID); if (chats.IsEmpty) { return(null); } else { return(chats[0]); } }