public ActionResult ViewStandData(Models.DataFetch oData) { List <Models.StandData> lstStandData = null; if (ModelState.IsValid) { lstStandData = oData.RetriveStandData(); } ViewBag.StandDataList = lstStandData; return(View()); }
public ActionResult ViewStandData() { Models.DataFetch oData = new Models.DataFetch(); List <Models.StandData> lstStandData = new List <Models.StandData>(); if (ModelState.IsValid) { if (oData.CallingView != null && oData.Task != null) { lstStandData = oData.RetriveStandData(); } oData.FromDate = DateTime.Now.Date; oData.ToDate = DateTime.Now.Date; oData.CallingView = "ViewStand"; oData.Task = "ALL"; } ViewBag.StandDataList = lstStandData; return(View(oData)); }