public ActionResult Hledat(HlidacStatu.Lib.Searching.VerejnaZakazkaSearchData model, string cpv) { if (ModelState.IsValid == false) { return(RedirectToAction("Index")); } if (model == null) { return(View(new HlidacStatu.Lib.Searching.VerejnaZakazkaSearchData())); } string[] cpvs = null; if (!string.IsNullOrEmpty(cpv)) { cpvs = cpv.Split(','); } var res = VerejnaZakazka.Searching.SimpleSearch(model); Lib.Data.Audit.Add( Lib.Data.Audit.Operations.UserSearch , this.User?.Identity?.Name , this.Request.UserHostAddress , "VerejnaZakazka" , res.IsValid ? "valid" : "invalid" , res.Q, res.OrigQuery); return(View(res)); }
public ActionResult IT(HlidacStatu.Lib.Searching.VerejnaZakazkaSearchData model) { if (model == null) { return(View(new Lib.Searching.SmlouvaSearchResult())); } else { return(View(model)); } }
public ActionResult IT(HlidacStatu.Lib.Searching.VerejnaZakazkaSearchData model) { if (ModelState.IsValid == false) { return(RedirectToAction("Index")); } if (model == null) { return(View(new Lib.Searching.SmlouvaSearchResult())); } else { return(View(model)); } }