示例#1
0
        public override SuatChieuPhim Convert(object input)
        {
            ThongTinFilmLotteCinema info   = (ThongTinFilmLotteCinema)input;
            SuatChieuPhim           result = new SuatChieuPhim();

            result.TenPhim      = info.TenPhim;
            result.TenRap       = info.TenRap;
            result.NgayGioChieu = ConvertFromStringsToDateTime(info.NgayChieu, info.GioChieu);
            result.MaSoPhong    = info.PhongChieu;
            return(result);
        }
示例#2
0
 public override bool IsValidInput(object input)
 {
     try
     {
         ThongTinFilmLotteCinema info = (ThongTinFilmLotteCinema)input;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }