Beispiel #1
0
        public virtual async Task <ActionResult <IEnumerable <MessageDto> > > GetByChatId(int id)
        {
            var dtos = await _messagesService.GetEntitiesByChatIdAsync(id);

            if (!dtos.Any())
            {
                return(NoContent());
            }

            return(Ok(dtos));
        }