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)); } }
public bool setGHD(GHDs gHD) { return(objInfPub.SetGHD(gHD)); }