public async Task <IActionResult> Login([FromBody] UserLoginRequest request)
        {
            IOperationResult <User> result = await _usersManager.AuthenticateUser(request.Email, request.Password);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }

            User user = result.Entity;

            var token = await GenerateJwtToken(user);

            return(Ok(token));
        }