public static bool XoaVideo(string maVideo) { if (VideoDAO.KTVideoTonTai(maVideo)) { return(VideoDAO.XoaVideo(maVideo));; } else { return(false); } }
//Sửa video public static bool SuaVideo(VideoDTO maVideo) { if (VideoDAO.KTVideoTonTai(maVideo)) { return(VideoDAO.SuaVideo(maVideo)); } else { return(false); } }
public static VideoDTO LayThongTinVideo(string maVideo) { if (!VideoDAO.KTVideoTonTai(maVideo)) { return(null); } else { return(VideoDAO.LayThongTinVideo(maVideo)); } }
//Thêm video public static bool ThemVideo(VideoDTO vd) { if (VideoDAO.KTVideoTonTai(vd)) { return(false); } else { return(VideoDAO.ThemVideo(vd)); } }
//public static List<VideoDTO> LayVideoTheoLoai(string maLoaiVideo) //{ // return LoaiVideoDAO.LayLoaiVideo(maLoaiVideo); //} public static DataRow LayVideo(VideoDTO maVideo) { if (!VideoDAO.KTVideoTonTai(maVideo)) { return(null); } else { return(VideoDAO.LayTenVideo(maVideo)); } }