Exemplo n.º 1
0
        public bool ActualizarEstatusOrden(int UsuarioId, int MenuId, byte EstatusOrden)
        {
            bool         retorno        = false;
            OrdenDaoImpl ordenesDaoImpl = new OrdenDaoImpl();
            Orden        orden          = ordenesDaoImpl.SelectByKey(new Orden {
                UsuarioId = UsuarioId, MenuId = MenuId
            });

            orden.Estatus = EstatusOrden;
            if (ordenesDaoImpl.Update(orden) != null)
            {
                retorno = true;
            }
            return(retorno);
        }
Exemplo n.º 2
0
        public Orden ActualizarOrden(Orden orden)
        {
            OrdenDaoImpl ordenesDaoImpl = new OrdenDaoImpl();

            return(ordenesDaoImpl.Update(orden));
        }