コード例 #1
0
ファイル: Business.cs プロジェクト: shankithegreat/BhuviCare
 public string UpdateVideo(VideoDetails videoDetails)
 {
     dataAccess.UpdateVideo(videoDetails);
     return "OK";
 }
コード例 #2
0
 public void UpdateVideo(VideoDetails videoDetails)
 {
     int maxId = GetMaxId("tblVideos", "Id") + 1;
     string query = "INSERT INTO [tblVideos]([Id],[VideoHeader],[VideoUrl])VALUES(" + maxId + ",'" + videoDetails.VideoHeader + "','" + videoDetails.VideoUrl + "');";
     ExecuteNonQuery(query);
 }
コード例 #3
0
 public string UpdateVideo(VideoDetails videoDetails)
 {
     try
     {
         Business business = new Business();
         return business.UpdateVideo(videoDetails);
     }
     catch (Exception ex)
     {
         return ex.Message;
     }
 }