public Reservation SelectById(int idReservation) { DataRow UneDataRow = _DBAL.SelectById("Reservation", idReservation); Reservation uneReservation = new Reservation((int)UneDataRow["idReservation"], (int)UneDataRow["idClient"], (int)UneDataRow["idSalle"], (int)UneDataRow["idTransaction"], (DateTime)UneDataRow["dateReservation"], (int)UneDataRow["nbJoueurs"], (int)UneDataRow["nbObstacles"]); return(uneReservation); }
public PositionObstacle SelectById(int idPositionObstacle) { DataRow UneDataRow = _DBAL.SelectById("PositionObstacle", idPositionObstacle); PositionObstacle unePositionObstacle = new PositionObstacle((int)UneDataRow["idPositionObstacle"], (string)UneDataRow["nomObstacle"], (int)UneDataRow["idReservation"], (int)UneDataRow["PositionObstacle"]); return(unePositionObstacle); }