public async Task <IActionResult> Add([FromBody] DocumentoAddModel model) { try { return(new OkObjectResult(await _documentoService.Add(model))); } catch (Exception ex) { return(new OkObjectResult( new ResponseDocumentoAddModel { Documento = null, Message = ex.Message, Success = false } )); } }