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); }
public override bool IsValidInput(object input) { try { ThongTinFilmLotteCinema info = (ThongTinFilmLotteCinema)input; return(true); } catch (Exception) { return(false); } }