public ActionResult CreateSession(Session session)
        {
            if (ModelState.IsValid)
            {
                if (sessionlogic.CreateTempSession(session.SessionTitle, session.SessionDate, session.SessionDescription, session.UniqueCode) != false)
                {
                    Session["UCode"] = session.UniqueCode;

                    return(RedirectToAction("CreatedSession"));
                }
            }
            else
            {
                ModelState.AddModelError("", "Ensure all session details are correct");
                return(View("CreateSession"));
            }

            return(View(session));
        }