public ActionResult ResourceList() { string sw = Request.Params["sw"]; int page = Convert.ToInt32(Request.Params["page"]); if (page == 0) page = 1; int pagesize = Convert.ToInt32(Request.Params["pagesize"]); if (pagesize == 0) pagesize = 10; string sourcetype = Request.Params["sourcetype"]; GetInterfaceData getdata = new GetInterfaceData(); getdata.GetSearchData(sw, sourcetype, page, pagesize); List<Resource> rsList = getdata.RsList; // List<Resource> rtn = GetData(apabiUrl); ViewData["Resources"] = rsList; ViewData["TotalCount"] = getdata.TotalCount; return View(); }
public ActionResult SearchResult() { string sw = Request.Params["sw"]; GetInterfaceData getdata = new GetInterfaceData(); getdata.GetSearchData(sw, "dlib", 1, 1); List<Resource> dlibList = getdata.RsList; ViewData["dlibList"] = dlibList; getdata = new GetInterfaceData(); getdata.GetSearchData(sw, "refbook", 1, 1); List<Resource> refBookList = getdata.RsList; ViewData["refBookList"] = refBookList; getdata = new GetInterfaceData(); getdata.GetSearchData(sw, "yearbook", 1, 1); List<Resource> yearBookList = getdata.RsList; ViewData["yearBookList"] = yearBookList; getdata = new GetInterfaceData(); getdata.GetSearchData(sw, "newspaper", 1, 1); List<Resource> newsPaperList = getdata.RsList; ViewData["newsPaperList"] = newsPaperList; return View(); }