public ActionResult CreateAPIKey() { if (ApplicationSetup.IsAPIKeyCreated()) { return(RedirectToAction("Step1")); } return(View(Commands.CreateAPIKey.NewRandom())); }
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")); }