public async Task <IActionResult> ListarTodos() { try { IList <Empresas> listEmpresas = await _service.ListarTodos(); return(Ok(listEmpresas.ToList())); } catch (Exception ex) { return(UnprocessableEntity(new { ex.Message, Status = 422 })); } }