Example #1
0
 public static bool XoaVideo(string maVideo)
 {
     if (VideoDAO.KTVideoTonTai(maVideo))
     {
         return(VideoDAO.XoaVideo(maVideo));;
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 //Sửa video
 public static bool SuaVideo(VideoDTO maVideo)
 {
     if (VideoDAO.KTVideoTonTai(maVideo))
     {
         return(VideoDAO.SuaVideo(maVideo));
     }
     else
     {
         return(false);
     }
 }
Example #3
0
 public static VideoDTO LayThongTinVideo(string maVideo)
 {
     if (!VideoDAO.KTVideoTonTai(maVideo))
     {
         return(null);
     }
     else
     {
         return(VideoDAO.LayThongTinVideo(maVideo));
     }
 }
Example #4
0
 //Thêm  video
 public static bool ThemVideo(VideoDTO vd)
 {
     if (VideoDAO.KTVideoTonTai(vd))
     {
         return(false);
     }
     else
     {
         return(VideoDAO.ThemVideo(vd));
     }
 }
Example #5
0
        //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));
            }
        }