Example #1
0
        //
        // GET: /Reclamos/Details/5

        public ActionResult Details(long id = 0)
        {
            Reclamo reclamo = modReclamo.Buscar(id);

            if (reclamo == null)
            {
                return(HttpNotFound());
            }
            ViewBag.TipoReclamo = TipoReclamo.GetNames(typeof(TipoReclamo))[reclamo.IdTipoReclamo];
            return(View(reclamo));
        }
Example #2
0
        //
        // GET: /Reclamos/

        public ActionResult Index()
        {
            ViewBag.TiposReclamos = TipoReclamo.GetNames(typeof(TipoReclamo));
            return(View(modReclamo.Listar()));
        }