Пример #1
0
        public void ObtenerOrden()
        {
            ObtenerToken("ADMINISTRADOR", "ASDF");
            var orden = new OrdenHeader()
            {
                Token = _token
            };
            var data = orden.ObtenerOrden(25);

            Assert.IsNotNull(data);
        }
Пример #2
0
        public ActionResult VerDetalles(int id)
        {
            _token = Session["Token"].ToString();
            if (string.IsNullOrEmpty(_token))
            {
                RedirectToAction("Index", "Home");
            }
            var orden = new OrdenHeader {
                Token = _token
            };

            ViewData["Detalles"] = orden.ObtenerOrden(id).ordenBId;
            return(View());
        }