public InventoryViewsList(IPaginatedList <Inventory> invList)
 {
     if (invList is null)
     {
         return;
     }
     PageIndex  = invList.PageIndex;
     TotalPages = invList.TotalPages;
     foreach (var inv in invList)
     {
         Add(MusealViewFactory.CreateInventory(inv));
     }
 }
Esempio n. 2
0
 public MusealViewsList(IPaginatedList <Museal> list)
 {
     if (list is null)
     {
         return;
     }
     PageIndex  = list.PageIndex;
     TotalPages = list.TotalPages;
     foreach (var item in list)
     {
         Add(MusealViewFactory.CreateMuseal(item));
     }
 }
 public InventoryMusealViewsList(IPaginatedList <InventoryMuseal> invList, IPaginatedList <Museal> musList)
 {
     if (musList is null)
     {
         return;
     }
     PageIndex  = musList.PageIndex;
     TotalPages = musList.TotalPages;
     foreach (var museal in musList)
     {
         foreach (var inventoryMuseal in invList)
         {
             if (museal.Data?.ID == inventoryMuseal.Data?.MusealID &&
                 museal.Data?.ID != "Unspecified")
             {
                 Add(MusealViewFactory.CreateInventoryMuseal(museal, inventoryMuseal));
             }
         }
     }
 }