public ActionResult <IEnumerable <ChatMessage> > Get() { //return new List<ChatMessage>(); var list = _redisData.GetALl(); if (list == null || !list.Any()) { return(new List <ChatMessage>()); } return(list.ToList()); }
public ActionResult <IEnumerable <ChatMessage> > Get() { //return new List<ChatMessage>(); var list = _redisData.GetALl(); if (list == null || !list.Any()) { return(new List <ChatMessage>()); } return(list.ToList()); }