public CommandResponse RevertirDocumentoReporteIngresado([FromBody] DocumentoIngresadoRequest request) { return(this.TryCatch(() => { _documentoAplicacion.RevertirDocumentoReporteIngresado(request); return _Response(msg: "Se revirtiĆ³ el documento"); })); }
public IActionResult RevertirDocumentoReporte([FromBody] DocumentoIngresadoRequest request) { if (request != null) { var usuario = GetUser(); request.username = usuario.UserName; request.ip_address = HttpContext.Connection.RemoteIpAddress.ToString(); } var result = _documentoComando.RevertirDocumentoReporteIngresado(request); return(_Response(result)); }
public void RevertirDocumentoReporteIngresado(DocumentoIngresadoRequest request) { if (request.id_documento == null || request.id_anexo == null) { xHelper.AbortWithInvalidRequest(); } try { _uow.p_DOCUMENTO_DIGITALIZADO_Crud(request.id_documento.Value, request.id_anexo.Value, request.username, request.ip_address, 0, 0); } catch (Exception e) { _uow.Rollback(); xHelper.AbortWithInternalError(); } }
public CommandResponse RevertirDocumentoReporteIngresado(DocumentoIngresadoRequest request) { var body = this.GetJsonParameters(request); return(this.CallWebApi <CommandResponse>(HttpMethod.Post, $"{_url}/actions/revertir-documento-reporte-ingresado", body)); }