public ActionResult Register(string komunikat) { ViewBag.grupa_id = _filters.filtry()[0]; ViewBag.dys_id = _filters.filtry()[1]; ViewBag.plec_id = _filters.filtry()[2]; if (string.IsNullOrEmpty(komunikat)) { ViewBag.Warning = ""; } else { ViewBag.Warning = komunikat; } return(View()); }
public ActionResult ResultsList(string dane, int?dys_id) { ViewBag.dys_id = ifilters.filtry()[1]; List <vResultList> result = new List <vResultList>(); result = iparticipanResult.getResultList(); if (dys_id > 0) { int id_dys = dys_id == null ? 0 : int.Parse(dys_id.ToString()); result = iparticipanResult.getResultListByDystans(id_dys, iparticipanResult); result = iparticipanResult.setOrderResultLIst(result); } if (!String.IsNullOrEmpty(dane)) { result = result.Where(x => x.dane.ToUpper().Contains(dane.ToUpper())).ToList(); result = iparticipanResult.setOrderResultLIst(result); } return(View(result)); }