public IQueryable <ApiInventoryItem> GetInventoryItems() { EntityMapper <InventoryItem, ApiInventoryItem> mapObj = new EntityMapper <InventoryItem, ApiInventoryItem>(); var items = _itemService.GetInventoryItems(); List <InventoryItem> itemList = items.ToList(); List <ApiInventoryItem> inventoryItems = new List <ApiInventoryItem>(); foreach (var item in itemList) { inventoryItems.Add(mapObj.Translate(item)); } return(inventoryItems.AsQueryable()); }