public async Task <IActionResult> Authenticate(LoginModel credential)
        {
            try
            {
                var response = await _accessLayer.Authenticate(credential);

                if (response == null)
                {
                    return(BadRequest(new { message = "Username Or Password is invalid" }));
                }
                return(Ok(response));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }