public async Task <HttpResponseMessage> Listar() { try { var response = _serviceUsuario.Listar(); return(await ResponseAsync(response, _serviceUsuario)); } catch (Exception ex) { return(await ResponseExceptionAsync(ex)); } }
public async Task <IActionResult> Listar() { try { AtualizarUsuarioLogado(); return(await ResponseAsync(_serviceUsuario.Listar(), _serviceUsuario)); } catch (Exception e) { return(await ResponseExceptionAsync(e)); } }
public Task <HttpResponseMessage> Listar() { return(CreateResponse(HttpStatusCode.OK, _serviceUsuario.Listar(), _serviceUsuario.GetNotifications())); }