Exemplo n.º 1
0
 public string UpdateVideo(VideoDetails videoDetails)
 {
     dataAccess.UpdateVideo(videoDetails);
     return "OK";
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public string UpdateVideo(VideoDetails videoDetails)
 {
     try
     {
         Business business = new Business();
         return business.UpdateVideo(videoDetails);
     }
     catch (Exception ex)
     {
         return ex.Message;
     }
 }