public async Task <IActionResult> GetAll() { try { var result = await _documentoService.GetAll(); if (result != null) { return(new OkObjectResult(result)); } return(NotFound()); } catch (Exception ex) { throw new Exception(ex.Message); } }
public Response <List <Documento> > DocumentoGetAll() { return(documentoService.GetAll()); }