public ActionResult UserProfit(Dictionary <string, string> queryvalues) { int _page = queryvalues.ContainsKey("page") ? Convert.ToInt32(queryvalues["page"]) : 1; int _Channels = queryvalues.ContainsKey("Channels") ? Convert.ToInt32(queryvalues["Channels"]) : 0; string _SearchExt = queryvalues.ContainsKey("Value") ? queryvalues["Value"].ToString() : ""; // string _StartDate = queryvalues.ContainsKey("StartDate") ? queryvalues["StartDate"] : DateTime.Now.ToString("yyyy-MM-dd 00:00:00"); // string _ExpirationDate = queryvalues.ContainsKey("ExpirationDate") ? queryvalues["ExpirationDate"] : DateTime.Now.AddDays(1).ToString("yyyy-MM-dd 00:00:00"); string _StartDate = DateTime.Now.AddDays(-2).Date.ToString(); string _ExpirationDate = DateTime.Now.AddDays(1).Date.ToString(); GameRecordView grv = new GameRecordView { SearchExt = _SearchExt, StartDate = _StartDate, ExpirationDate = _ExpirationDate, Page = _page }; BaseDataView vbd = new BaseDataView { StartDate = _StartDate, ExpirationDate = _ExpirationDate, Channels = _Channels, SearchExt = _SearchExt }; ViewData["SearchExt"] = _SearchExt; //if (_SearchExt != "") //{ // //ViewData["DetailProfit"] = BaseDataBLL.GetGameOutputDetailUser(vbd); // ViewData["GameProfit"] = BaseDataBLL.GetGameProfit(vbd); //} //else //{ // ViewData["GameProfit"] = ""; //} //if (Request.IsAjaxRequest()) //{ // return PartialView("UserProfit_PageList", BaseDataBLL.GetUsreProfit(_page, vbd)); //} //vbd.BaseDataList = BaseDataBLL.GetUsreProfit(_page, vbd); return(View(BaseDataBLL.GetUsreProfit(_page, vbd))); }