コード例 #1
0
        public JsonResult LikeWebMainPage1()
        {
            WebDataViewModel model = new WebDataViewModel();

            model.getWebdataDB();

            return(Json(model.WebDataList, "success"));
        }
コード例 #2
0
        //
        // GET: /LikeWeb/
        public ActionResult LikeWebMainPage()
        {
            WebDataViewModel model = new WebDataViewModel();


            model.getWebdataDB();
            if (!string.IsNullOrEmpty(model.Message))
            {
                return(View(model));
            }
            model.getWebType();
            if (!string.IsNullOrEmpty(model.Message))
            {
                return(View(model));
            }
            Session["WebDataList"] = model.WebDataList;

            return(View(model));
        }