示例#1
0
        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);
            }
        }
示例#2
0
 public Response <List <Documento> > DocumentoGetAll()
 {
     return(documentoService.GetAll());
 }