Esempio n. 1
0
        // ReSharper disable once FunctionComplexityOverflow
        public ActionResult Index(int? id, bool? testing, string email, bool? login, string registertag, bool? showfamily, int? goerid, int? gsid, string source)
        {
            Response.NoCache();
            try
            {
                var m = new OnlineRegModel(Request, id, testing, email, login, source);
                if (m.org != null && m.org.IsMissionTrip == true)
                    m.PrepareMissionTrip(gsid, goerid);

                SetHeaders(m);
                var pid = m.CheckRegisterLink(registertag);
                return RouteRegistration(m, pid, showfamily);
            }
            catch (Exception ex)
            {
                if (ex is BadRegistrationException)
                    return Message(ex.Message);
                throw;
            }
        }