public ActionResult Detail(string id, string cdts)
 {
     GetConditions(cdts);
     EntityCounter(id, "Vister");
     CurriculumModel entityModel = new CurriculumModel(id);
     if ("1".Equals(entityModel.IsOut) && !string.IsNullOrWhiteSpace(entityModel.AUrl))
     {
         Response.Redirect(entityModel.AUrl);
     }
     return View(entityModel);
 }
        public ActionResult Edit(CurriculumModel model, string cdts)
        {
            GetConditions(cdts);

            ////檢查內容無障礙是否通過
            if (!AccessibilityUtil.CheckFreeGO(model.Content))
            {
                model.ShowFreeGOMsg = true;
                model.FreeGOColumnName = "Content";
            }

            model.Update();

            if (model.ShowFreeGOMsg)
            {
                return View("Save", model);
            }

            return RedirectToAction("AdminIndex", new { Page = model.Page, Cdts = cdts });
        }
        public ActionResult DownloadFile(string id, string fileNum, string name)
        {
            Member member = m_SessionHelper.WebMember;
            if (member != null)
            {
                new MemberModel().AddDownloadRecord(name, "2", member.MemberId.ToString());
            }
            
            CurriculumModel entityModel = new CurriculumModel(id);
            switch (fileNum)
            {
                case ("1"):
                    return Redirect(new HomeShowModel().GetFileByEncrypt(entityModel.AFile1));
                case ("2"):
                    return Redirect(new HomeShowModel().GetFileByEncrypt(entityModel.AFile2));
                case ("3"):
                    return Redirect(new HomeShowModel().GetFileByEncrypt(entityModel.AFile3));
            }

            return new EmptyResult();
        }
        public ActionResult Create(CurriculumModel model, string cdts)
        {
            GetConditions(cdts);

            ////檢查內容無障礙是否通過
            if (!AccessibilityUtil.CheckFreeGO(model.Content))
            {
                model.ShowFreeGOMsg = true;
                model.FreeGOColumnName = "Content";
            }

            model.Insert();

            if (model.ShowFreeGOMsg)
            {
                return View("Save", model);
            }
            
            return View("AdminIndex");
        }