public IActionResult Authenticate([FromBody] AuthenticationModel model)
        {
            var user = _service.Authenticate(model.UserName, model.Password);

            if (user == null)
            {
                return(BadRequest(new { message = "username or Password is incorrect" }));
            }
            return(Ok(user));
        }