public bool AddBidToItem(int id, BidDTO bid)
        {
            var item = FindInternal(id);

            if (item.Bids.Count < item.MaxNumberOfBids) {
                item.Bids.Add(Mapper.Map<Bid>(bid));
                _repo.SaveChanges();

                return true;
            }

            return false;
        }
        public ActionResult CreateBid(int id, BidDTO bid) {

            if (ModelState.IsValid) {

                if (_auctionService.AddBidToItem(id, bid)) {
                    return RedirectToAction("Index");
                }
                else {
                    ModelState.AddModelError("Status", "Auction is closed");
                }
            }

            return View(new CreateBidViewModel {
                Item = _auctionService.Find(id),
                Bid = bid
            });
        }