コード例 #1
0
        public ActionResult SetGHD(GHDs test, FormCollection fc)
        {
            if (test.Link.ToString().Contains("embed") == true)
            {
            }
            else
            {
                string Link = test.Link.Replace("www.youtube.com/", "www.youtube.com/embed/");
                test.Link = Link;
            }


            bool res = objPartnerBAL.setGHD(test);

            if (res)
            {
                return(Json(new { success = true, responseText = "The attached file is not supported." }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { success = false, responseText = "The attached file is not supported." }, JsonRequestBehavior.AllowGet));
            }
        }
コード例 #2
0
 public bool setGHD(GHDs gHD)
 {
     return(objInfPub.SetGHD(gHD));
 }