public CurrencyViewModelsList(IPaginatedList <CurrencyObject> list) { if (list is null) { return; } PageIndex = list.PageIndex; TotalPages = list.TotalPages; foreach (var e in list) { Add(CurrencyViewModelFactory.Create(e)); } }