public IList <MessageViewModel> GetAll([FromServices] IMessageQueries messageQueries) { return(messageQueries.GetAll()); }
public async Task <IActionResult> Get() { var result = await _messageQueries.GetAll(); return(Ok(result)); }