Exemplo n.º 1
0
 public ActionResult SelectAPlan(string accountName, string friendlyName, string adminPassword, string adminPassword2, string adminEmail, string adminEmail2, int planType)
 {
     if (!AccountBL.AccountExists(accountName))
     {
         AccountBL.CreateAccount(accountName, friendlyName, adminPassword, adminEmail, planType);
         ViewBag.Account = accountName;
         return(View("AccountCreated"));
     }
     else
     {
         ViewData.Model       = planType;
         ViewBag.ErrorMessage = "Account '" + accountName + "' already exists. Please enter another name.";
         ViewBag.FriendlyName = friendlyName;
         ViewBag.AdminEmail   = adminEmail;
         return(View("SelectPlan"));
     }
 }