Ejemplo n.º 1
0
 public ActionResult Index(SearchRecordViewModel pParameters)
 {
     ViewBag.Operations = GetOperations();
     ViewBag.ShowTable = 1;
     Session["StartDate"] =pParameters.StartDate;
     Session["EndDate"] = pParameters.EndDate;
     Session["Operation"] = pParameters.Operation;
     return View(pParameters);
 }
Ejemplo n.º 2
0
 public ActionResult Index()
 {
     ViewBag.Operations = GetOperations();
     ViewBag.ShowTable = 0;
     var model = new SearchRecordViewModel();
     model.StartDate = DateTime.Now.AddMonths(-1).ToShortDateString();
     model.EndDate = DateTime.Now.ToShortDateString();
     return View(model);
 }