public PartialViewResult AjaxSearchPOC(string jsonQuery) { JavaScriptSerializer serializer = new JavaScriptSerializer(); var query = serializer.Deserialize<QueryObject>(jsonQuery); //result = result.Where(p => p.Customer.Name.Contains(filter)); ListPOCViewModel VM = new ListPOCViewModel(search(query), "All"); return this.PartialView(VM); }
// // GET: /GM_Inbox/ public ActionResult Inbox() { List<POC> POCs = db.POC.ToList<POC>(); ListPOCViewModel VM = new ListPOCViewModel(POCs, "GM"); return View(VM); }
// // GET: /GM_Search/ public ActionResult SearchPOC() { QueryObject all = new QueryObject(); ListPOCViewModel VM = new ListPOCViewModel(searchAll(all), "GM_Search"); List<Product> products = db.Product.ToList(); List<string> listStatus = new List<string> {"Incomplete","Sent","Cancelled"}; List<string> months = new List<string> { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; List<int> years = new List<int>(); for (int i = 1969; i < 2031; i++) { years.Add(i); } VM.Products = products; VM.listStatus = listStatus; VM.months = months; VM.years = years; return View(VM); }