public ActionResult Next(int auctionId, int dealId) { try { AuctionRepository auctionRepository = new AuctionRepository(); auctionRepository.End(auctionId); DealRepository dealRepository = new DealRepository(); dealRepository.NoActive(dealId); return(RedirectToAction("Start", "AuctionManage", new { id = auctionId })); } catch { return(RedirectToAction("Start", "AuctionManage", new { id = auctionId })); } }