public async Task <IActionResult> Create([Bind("Id,Name,Surname,Email,Password,IsAdmin")]
                                                 User user)
        {
            if (ModelState.IsValid)
            {
                var result = await _service.CreateUser(user.Email, user.Password, user.Name, user.Surname, user.IsAdmin);


                return(RedirectToAction(nameof(Index)));
            }

            return(View(user));
        }