public ActionResult EmailStock(Dictionary <string, string> queryvalues) { int _page = queryvalues.ContainsKey("page") ? Convert.ToInt32(queryvalues["page"]) : 1; string UserName = queryvalues.ContainsKey("SearchExt") ? queryvalues["SearchExt"] : ""; string GroupName = queryvalues.ContainsKey("SearchExt2") ? queryvalues["SearchExt2"] : ""; // BaseDataView bdv = new BaseDataView() { SearchExt = UserName, SearchExt2 = GroupName, Page = _page }; if (Request.IsAjaxRequest()) { return(PartialView("EmailStock_PageList", ServEmailBLL.GetListByUserStock(bdv))); } //UserStock bdv.BaseDataList = ServEmailBLL.GetListByUserStock(bdv); return(View(bdv)); }