public string ThemPhim(PhimContract phimmuonthem) { PhimBDO phimsethem = ChuyenTuContractSangDBO(phimmuonthem); string stringketqua = PhimLogic.ThemPhim(phimsethem); return(stringketqua); }
public string SuaPhim(PhimContract phimmuonsua) { PhimBDO phimsesua = ChuyenTuContractSangDBO(phimmuonsua); string stringketqua = PhimLogic.SuaPhim(phimsesua); return(stringketqua); }
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); }
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); }