示例#1
0
        public ActionResult Search()
        {
            DateTimeFormatInfo dtfi = new DateTimeFormatInfo();

            dtfi.ShortDatePattern = "yyyy-MM-dd";
            dtfi.DateSeparator    = ".";
            MegrendelesSearchModel m = new MegrendelesSearchModel
            {
                VevoNev  = "n",
                FromDate = DateTime.Parse("2000.01.01", dtfi),
                ToDate   = DateTime.Today
            };

            return(View(m));
        }
示例#2
0
 public ActionResult Search(MegrendelesSearchModel m)
 {
     ViewBag.SearchCondition = m;
     return(View("SearchResult",
                 MegrendlesSearchResultModel.Enumerate(MegrendelesManager.Search(m.VevoNev, m.FromDate, m.ToDate))));
 }