Exemplo n.º 1
0
 public List <SelectList> filtry()
 {
     try
     {
         List <SelectList> result = new List <SelectList>();
         using (var db = new EntitiesRegistrationParticipant())
         {
             result.Add(new SelectList(_iGrupa.filtrGrupa(), "grupa_id", "grupa_nazwa"));
             result.Add(new SelectList(_iDystans.filtrDystans(), "dys_id", "dys_wartosc"));
             result.Add(new SelectList(_iPlec.filtrPlec(), "plec_id", "plec_opis"));
         }
         return(result);
     }
     catch (Exception ex)
     {
         string blad = ex.InnerException.Message;
         return(null);
     }
 }
 public ActionResult AddPArticipant()
 {
     ViewBag.dystans = new SelectList(idystans.filtrDystans(), "dys_id", "dys_wartosc");
     return(View());
 }