public IActionResult Register(UserRegisterModel model)
        {
            if (ModelState.IsValid)
            {
                var emailControl = _userService.CheckEmail(model.Email);

                if (!emailControl)
                {
                    _userService.Create(new ApplicationUser
                    {
                        Email    = model.Email,
                        Name     = model.Name,
                        Password = model.Password,
                        RoleId   = 2,
                        Surname  = model.Surname
                    });

                    return(RedirectToAction("Login", "Account"));
                }
                ModelState.AddModelError("", "Email adresi zaten sistemde kayıtlı");
            }
            return(View(model));
        }