// GET: Deal/Edit/5
        public ActionResult Edit(int id)
        {
            DealRepository        repository     = new DealRepository();
            AuctionRepository     auctionRep     = new AuctionRepository();
            ParticipantRepository participantRep = new ParticipantRepository();
            DealStateRepository   dealStateRep   = new DealStateRepository();
            ItemRepository        itemRep        = new ItemRepository();

            DealModel model = repository.GetById(id);

            model.Auctions   = auctionRep.GetAll();
            model.Buyers     = participantRep.GetAll();
            model.Sellers    = participantRep.GetAll();
            model.DealStates = dealStateRep.GetAll();
            model.Items      = itemRep.GetAll();

            return(View(model));
        }