public ActionResult AccountsPanel() { decimal?USER_NO = Session["sess_USER_NO"] as decimal?; DcrPublishSearchModel searchModel = new DcrPublishSearchModel(); if (!string.IsNullOrEmpty(Request.QueryString["Search_User"])) { searchModel.Search_User = decimal.Parse(Request.QueryString["Search_User"]); } if (!string.IsNullOrEmpty(Request.QueryString["Search_Date_From"])) { searchModel.Search_Date_From = DateTime.Parse(Request.QueryString["Search_Date_From"]); } if (!string.IsNullOrEmpty(Request.QueryString["Search_Date_To"])) { searchModel.Search_Date_To = DateTime.Parse(Request.QueryString["Search_Date_To"]); } if (!string.IsNullOrEmpty(Request.QueryString["Search_pubno"])) { searchModel.Search_pubno = decimal.Parse(Request.QueryString["Search_pubno"]); } ViewBag.Search_DcrPublish_Model = searchModel; var accounts_list = db.DCR_PUB_ACCOUNTS_GET(searchModel.Search_User, USER_NO, searchModel.Search_pubno, searchModel.Search_Date_From, searchModel.Search_Date_To).ToList(); return(View(accounts_list)); }