Example #1
0
 public ActionResult CreateAPIKey()
 {
     if (ApplicationSetup.IsAPIKeyCreated())
     {
         return(RedirectToAction("Step1"));
     }
     return(View(Commands.CreateAPIKey.NewRandom()));
 }
Example #2
0
        public ActionResult Step1()
        {
            if (!ApplicationSetup.IsDatabaseCreated())
            {
                return(View());
            }

            if (!ApplicationSetup.IsSchemaUpToDate())
            {
                return(RedirectToAction("UpdateSchema"));
            }

            if (!ApplicationSetup.HasAdminUser())
            {
                return(View());
            }

            if (!ApplicationSetup.IsAPIKeyCreated())
            {
                return(RedirectToAction("CreateAPIKey"));
            }

            return(RedirectToAction("ThankYou"));
        }