//we want to validate that such a username exists //in this hotel public override bool IsValid(object value) { LoginModel login_model = (LoginModel)value; HRSDao dao = new HRSDao(); return(dao.isHotelUserValid(login_model.UserName, login_model.HotelID)); }
//we want to validate that such a username exists //in this hotel public override bool IsValid(object value) { RoomTypes room_type_model = (RoomTypes)value; HRSDao dao = new HRSDao(); return(dao.isRoomTypeValid(room_type_model.room_type_id, room_type_model.HotelID)); }