public ActionResult Create(DealModel ModelObject)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    DealRepository repository = new DealRepository();
                    repository.Add(ModelObject);
                    return(RedirectToAction("GetAll"));
                }

                return(View());
            }
            catch
            {
                return(View());
            }
        }
        public ActionResult NewDeal(DealModel ModelObject)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    DealRepository dealRepository = new DealRepository();
                    ItemRepository itemRepository = new ItemRepository();
                    itemRepository.SetSold(ModelObject.Item_Id);

                    dealRepository.Add(ModelObject);
                    return(RedirectToAction("AddDeals", "AuctionManage", new { id = ModelObject.Auction_Id }));
                }

                return(View());
            }
            catch
            {
                return(View());
            }
        }