Пример #1
0
        public ArticuloDocumentoResponse SubirDocumentoArticulo(ArticuloDocumentoRequest request)
        {
            var response = new ArticuloDocumentoResponse();

            using (var controller = new ArticuloController())
            {
                response = controller.SubirDocumentoArticulo(request);
            }
            return(response);
        }
Пример #2
0
        public ArticuloDocumentoResponse SubirDocumentoArticulo(ArticuloDocumentoRequest request)
        {
            var response = new ArticuloDocumentoResponse()
            {
                EjecucionValida    = false,
                MensajeError       = string.Empty,
                IdUsuarioEjecucion = request.IdUsuarioEjecucion
            };

            try
            {
                response.Item            = iArticuloDominio.SubeDocumentoArticulo(request.Item);
                response.EjecucionValida = true;
            }
            catch (Exception ex)
            {
                response.MensajeError = ex.Message;
                using (LoggingHelper helper = new LoggingHelper(TipoRepositorio.Xml))
                {
                    helper.Registrar(ex);
                }
            }
            return(response);
        }