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));
        }
        public ActionResult Contact([Bind(Include = "FirstName,LastName,Email,SubjectSelector,Body")] ContactForm contactForm)
        {
            if (ModelState.IsValid)
            {
                //ADD EMAIL LOGIC
                SmtpMessageChunk.SendContactFormEmail(contactForm);
                return(RedirectToAction("Index"));
            }

            ViewBag.SubjectSelector = contactForm.SubjectSelector;

            return(View());
        }