public ActionResult CreateUser(string userName, string password, string roles)
 {
     var newUser = new Account()
         {
             UserName = userName,
             Roles = (String.IsNullOrWhiteSpace(roles) ? new string[0] : roles.Split(','))
         };
     newUser.SetPassword(password);
     var repo = new AccountRepository();
     repo.AddAccount(newUser);
     return RedirectToAction("Index");
 }
 public void AddAccount(Account account)
 {
     accounts.Add(account);
 }