public IActionResult CreateUser([FromBody] UserCreationDto newUser)
        {
            var user = authService.CreateNewUser(newUser, User);

            if (!user.IsCreatedSuccesfully)
            {
                if (user.CreationError == UserCreationError.LoginAlreadyExists)
                {
                    return(BadRequest("Cannot create user. User with given user name already exists"));
                }
                else
                {
                    return(BadRequest("Cannot create user. Unknown error"));
                }
            }
            else
            {
                return(CreatedAtRoute("GetUser", new { id = user.CreatedUser.UserId }, user.CreatedUser));
            }
        }