コード例 #1
0
        // GET: Facturacion/Create
        public ActionResult Create(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Factura fact = new Factura();

            fact.Turno     = _turnosService.ObtenerTurno(id.Value);
            fact.Cliente   = fact.Turno.Mascota.Cliente;
            ViewBag.ItemId = new SelectList(_itemService.ObtenerItems().Where(o => o.Tipo == TipoItem.Producto), "ID", "Descripcion");
            return(View(fact));
        }
コード例 #2
0
        // GET: Turnos/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Turno turno = _turnosService.ObtenerTurno(id.Value);

            if (turno == null)
            {
                return(HttpNotFound());
            }
            return(View(turno));
        }