示例#1
0
        public ActionResult Confirmed(string bookKey)
        {
            var(booking, branch) = GetBookingFromKey(bookKey);

            SmtpMessageChunk.SendMessageSmtp(booking, branch, Request.Url);

            ViewBag.address = branch.Address;
            return(View(booking));
        }
        public ActionResult Confirmed(string BookKey)
        {
            var booking = db.Bookings.Get().Where(x => x.BookKey == BookKey).FirstOrDefault();
            var branch  = db.Branches.Get().Where(x => x.Id == booking.Court.BranchId).FirstOrDefault();

            ViewBag.address = branch.Address;
            ViewBag.city    = branch.City;

            SmtpMessageChunk.SendMessageSmtp(booking, branch);
            return(View(booking));
        }