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)); }
public ActionResult Search(MegrendelesSearchModel m) { ViewBag.SearchCondition = m; return(View("SearchResult", MegrendlesSearchResultModel.Enumerate(MegrendelesManager.Search(m.VevoNev, m.FromDate, m.ToDate)))); }