// GET: api/messages public List <Msg> Get() { List <Msg> messages; if (MessagesList.Messages.Count != 0) { messages = MessagesList.Messages; } else { messages = Configer.ReadPool(); } return(MessagesList.Messages); }