public static void CreateSessionInstance(Path.Parser path, Schools.School school)
        {
            WebServer.PleaseTakes.Session.CreateNewInstance(school);

            if (path.IsEmpty)
            {
                Redirects.ToLogin(path);
            }
            else
            if (path.Contains("dologin"))
            {
                BasicResponses.Login.Action.AttemptLogin();
            }
            else
            {
                WebServer.PleaseTakes.Redirect(path.ToString());
            }

            // This is what is was before the minor modifications (2010-08-12)
            //Redirects.ToLogin(path);
        }
        public string Post([FromBody] Schools.School NewSchool)
        {
            Schools APIClasses = new Schools();

            return(APIClasses.AddNewSchool(NewSchool));
        }
Пример #3
0
 public Session(Schools.School school)
 {
     this._school           = school;
     this._temporaryStorage = new Dictionary <string, object>();
 }