public ActionResult Register(RegisterModel model)
        {
            if (ModelState.IsValid)
            {
                this.userRepository.CreateUser(model.UserName, model.Password);
                this.authService.LogOn(model.UserName, remember: true);
                TempData.Add(KEY_NEW_USERNAME, model.UserName);

                return this.RedirectToAction("Greeting");
            }

            return this.View(model);
        }
 public ActionResult Register()
 {
     var model = new RegisterModel();
     return this.View(model);
 }