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