Ejemplo n.º 1
0
 private IEnumerable <OfflineIdentity> GetIdentityFromReservationSlot(String serie, ReservationSlot reservationSlot)
 {
     for (Int64 i = reservationSlot.StartIndex; i <= reservationSlot.EndIndex; i++)
     {
         yield return(new OfflineIdentity(serie, i));
     }
 }
Ejemplo n.º 2
0
 public void AddReservation(string serie, ReservationSlot reservationSlot)
 {
     _offlineSlots.InsertMany(GetIdentityFromReservationSlot(serie, reservationSlot));
 }