public ActionResult ResourceDetail()
 {
     string metaid = Request.Params["metaid"];
     GetInterfaceData getdata = new GetInterfaceData();
     Resource rs = getdata.GetResourceData(metaid);
     // List<Resource> rtn = GetData(apabiUrl);
     ViewData["Resource"] = rs;
     return View();
 }
 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();
        }