Esempio n. 1
0
 public ActionResult Index([Bind(Include = "Rok,Region,Zakaznik")] GRFiltr grfiltr)
 {
     ViewBag.Rok      = grfiltr.Rok;
     ViewBag.Region   = new SelectList(Region.GetAll(), "Id", "NazevRegionu", grfiltr.Region);
     ViewBag.Zakaznik = new SelectList(Zakaznik.GetAll(), "Id", "NazevZakaznika", grfiltr.Zakaznik);
     return(View(grfiltr));
 }
Esempio n. 2
0
        public ActionResult Index()
        {
            GRFiltr gRFiltr = new GRFiltr();

            ViewBag.Rok      = Rok.ThisYear();
            ViewBag.Region   = new SelectList(Region.GetAll(), "Id", "NazevRegionu");
            ViewBag.Zakaznik = new SelectList(Zakaznik.GetAll(), "Id", "NazevZakaznika");
            return(View(gRFiltr));
        }