public ActionResult LikeWebAddPage()
        {
            WebDataViewModel model = new WebDataViewModel();

            model.getWebType();
            if (!string.IsNullOrEmpty(model.Message))
            {
                return(null);
            }
            return(View(model));
        }
        public ActionResult LikeWebModifyPage(string WebName)
        {
            ViewBag.Title = "編輯頁面";
            WebDataViewModel model = new WebDataViewModel();

            model.WebDataList = Session["WebDataList"] as List <WebDataModel>;
            model.getWebType();
            if (!string.IsNullOrEmpty(model.Message))
            {
                return(View(model));
            }
            WebDataModel SelectData = new WebDataModel();

            SelectData        = model.WebDataList.Where(x => x.WebName == WebName).FirstOrDefault();
            model.WebName     = SelectData.WebName;
            model.WebTypeNeme = SelectData.WebTypeNeme;
            model.WebURL      = SelectData.WebURL;
            return(View(model));
        }
        //
        // 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));
        }