// GET: Auction/Create public ActionResult WinAution() { ApplicationDbContext db = new ApplicationDbContext(); var email = db.Users.Where(e => e.UserName == User.Identity.Name).FirstOrDefault().Email; var proxy = new AuctionServiceClient("BasicHttpBinding_IAuctionService"); proxy.Open(); var items = proxy.GetMyWonAuctionsHistory(email); proxy.Close(); db.Dispose(); return View(items); }