コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: VZController.cs プロジェクト: jiriKuba/HlidacStatu
 public ActionResult IT(HlidacStatu.Lib.Searching.VerejnaZakazkaSearchData model)
 {
     if (model == null)
     {
         return(View(new Lib.Searching.SmlouvaSearchResult()));
     }
     else
     {
         return(View(model));
     }
 }
コード例 #3
0
        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));
            }
        }