Ejemplo n.º 1
0
        public static Respuesta Activar_Lote(Peticion <int> req)
        {
            var feedBack = new Respuesta {
                Mensaje = string.Empty, Resultado = false
            };

            try
            {
                var pl   = new LotePL();
                var info = new LoteInfo {
                    LoteID = req.Datos, Activo = EstatusEnum.Activo
                };
                pl.ActualizaActivoEnLote(info);
                feedBack.Resultado = true;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                feedBack.Mensaje = string.Format("Ocurrió un error al activar el lote.");
            }

            return(feedBack);
        }