Beispiel #1
0
 public IList <GetTablesMap_Result> ToList()
 {
     if (_tablesMaps == null)
     {
         _tablesMaps = new List <GetTablesMap_Result>();
         int i = 0;
         foreach (Table table in Tables)
         {
             i++;
             foreach (GetReservation_Result seated in table.Seateds)
             {
                 GetTablesMap_Result current = new GetTablesMap_Result();
                 current.ClientFirstName = seated.ClientFirstName;
                 current.ClientId        = seated.ClientId;
                 current.ClientLastName  = seated.ClientLastName;
                 current.IsValid         = table.isValid;
                 current.ReceptionId     = _recId;
                 current.TableNumber     = i;
                 _tablesMaps.Add(current);
             }
         }
     }
     return(_tablesMaps);
 }
 public IList<GetTablesMap_Result> ToList() {
   if(_tablesMaps == null) {
     _tablesMaps = new List<GetTablesMap_Result>();
     int i = 0;
     foreach(Table table in Tables) {
       i++;
       foreach(GetReservation_Result seated in table.Seateds) {
         GetTablesMap_Result current = new GetTablesMap_Result();
         current.ClientFirstName = seated.ClientFirstName;
         current.ClientId = seated.ClientId;
         current.ClientLastName = seated.ClientLastName;
         current.IsValid = table.isValid;
         current.ReceptionId = _recId;
         current.TableNumber = i;
         _tablesMaps.Add(current);
       }
     }
   }
   return _tablesMaps;
 }