Пример #1
0
 public string AddSermon(string title, string descr, string by, string seriesID, string sermonPlace, string sermonDate, string audioLink, string imageLink, string videoLink, string artLink, string artSmallLink)
 {
     var json = "";
     DataLink DBLink = new DataLink();
     try
     {
         if (DBLink.AddSermon(NVL(title), NVL(descr), by, NVL(seriesID, "0"), NVL(sermonPlace), NVL(sermonDate, DateTime.Now.Date.ToString()), audioLink, NVL(imageLink), NVL(videoLink), artLink, artSmallLink))
             json = "Success";
         else
             json = "Failed";
     }
     catch (Exception) { json = "Failed"; }
     return json;
 }
Пример #2
0
 public string SaveSermon(string title, string desc, string by, string seriesID, string place, string date, string audio, string image, string video, string art, string artsml)
 {
     DataLink dl = new DataLink();
     return dl.AddSermon(title, desc, by, seriesID, place, date, audio, image, video, art, artsml).ToString();
 }