public IEnumerable <ModelLibrary.Item> GetCatItems(int itemCatId)
        {
            var itemDb    = new ItemDb();
            var priceCtrl = new PriceCtrl();

            var itemsDb = itemDb.GetCategoryItems(itemCatId);
            var items   = new List <ModelLibrary.Item>();

            foreach (var item in itemsDb)
            {
                var itemo = ConvertItemToModel(item);
                itemo.Price = priceCtrl.GetLatestPriceById(item.id);
                if (itemo.Price != null)
                {
                    items.Add(itemo);
                }
            }

            return(items);
        }
 public IEnumerable <ModelLibrary.Item> GetAllItemsByCategory(int categoryId)
 {
     return((IEnumerable <ModelLibrary.Item>)itemDb.GetCategoryItems(categoryId)); // is this legal?
 }