Example #1
0
 public ActionResult UpdateNewsListPage(int pagenum, string Key, string Key2, string Key3)
 {
     if (Key == "Keyword Search")
     {
         Key = "";
     }
     Models.NewsListViewModel Mod = new Models.NewsListViewModel(pagenum, 10, DateTime.Parse(Key2), DateTime.Parse(Key3), Key);
     return PartialView("_newslistpartial", Mod);
 }
Example #2
0
 public ActionResult NewsList(string Key, string Key2, string Key3, int? pagenum)
 {
     if (Key == null)
     {
         Key = "";
     }
     if (Key2 == null)
     {
         Key2 = "2000-01-01";
     }
     if (Key3 == null)
     {
         Key3 = DateTime.Now.ToString();
     }
     Models.NewsListViewModel Mod = new Models.NewsListViewModel(pagenum ?? 1, 10, DateTime.Parse(Key2), DateTime.Parse(Key3), Key);
     return View(Mod);
 }