public ActionResult MakePurchase()
        {
            if (!Request.IsAuthenticated)
                return View();

            var sender = new MailSender();
            sender.SendMail();

            var guid = CookieHandler.GetUserId();
            var creator = new OrderCreator(session);
            var order = creator.CreateOrder();

            session.Delete("from CartUpdateEvents where Guid ='" + guid + "'");
            session.Flush();

            return View();
        }
 public HomeController(ISession session, OrderCreator creator)
 {
     this.session = session;
     this.creator = creator;
 }