Пример #1
0
        public string ThemPhim(PhimContract phimmuonthem)
        {
            PhimBDO phimsethem   = ChuyenTuContractSangDBO(phimmuonthem);
            string  stringketqua = PhimLogic.ThemPhim(phimsethem);

            return(stringketqua);
        }
Пример #2
0
        public string SuaPhim(PhimContract phimmuonsua)
        {
            PhimBDO phimsesua    = ChuyenTuContractSangDBO(phimmuonsua);
            string  stringketqua = PhimLogic.SuaPhim(phimsesua);

            return(stringketqua);
        }
Пример #3
0
        public PhimBDO ChuyenTuContractSangDBO(PhimContract phim)
        {
            PhimBDO kq = new PhimBDO {
                PhimID = phim.PhimID, Ten = phim.Ten, DaoDien = phim.DaoDien, DienVien = phim.DienVien, DoDai = phim.DoDai, GioiThieu = phim.GioiThieu, HangPhim = phim.HangPhim, NuocSanXuat = phim.NuocSanXuat, PDF = phim.Pdf, PhienBan = phim.PhienBan, Poster = phim.Poster, TheLoai = phim.TheLoai, Trailer = phim.Trailer
            };

            return(kq);
        }
Пример #4
0
        public PhimContract DocTheoMa(string Ma)
        {
            int          idphimmuontim = Convert.ToInt32(Ma);
            PhimBDO      kqtimduoc     = PhimLogic.DocTheoMa(idphimmuontim);
            PhimContract kqtrave       = new PhimContract()
            {
                PhimID = kqtimduoc.PhimID, Ten = kqtimduoc.Ten, DaoDien = kqtimduoc.DaoDien, DienVien = kqtimduoc.DienVien, DoDai = kqtimduoc.DoDai, GioiThieu = kqtimduoc.GioiThieu, HangPhim = kqtimduoc.HangPhim, NuocSanXuat = kqtimduoc.NuocSanXuat, Pdf = kqtimduoc.PDF, PhienBan = kqtimduoc.PhienBan, Poster = kqtimduoc.Poster, TheLoai = kqtimduoc.TheLoai, Trailer = kqtimduoc.Trailer
            };

            return(kqtrave);
        }