public HttpResponseMessage ValidateToken(string token, string methodTocall)
        {
            HttpResponseMessage response = new HttpResponseMessage();
            string errMessage            = string.Empty;

            if (!string.IsNullOrEmpty(token))
            {
                token = token.Replace(" ", "+");
                token = token.Replace(@"\", "");
            }
            if (_IAuthenticate.IsTokenValid(Convert.ToString(token), methodTocall, out errMessage))
            {
                response = Request.CreateResponse(HttpStatusCode.OK, "Success");
            }
            else
            {
                response = Request.CreateResponse(HttpStatusCode.InternalServerError, errMessage);
            }

            return(response);
        }