Example #1
0
        public HttpResponseMessage AccountValidation(string key)
        {
            var response = _usersProvider.ValidateAccount(key);

            if (!response)
            {
                return(Request.CreateResponse(HttpStatusCode.Forbidden, "Provided Key does not match, please try again."));
            }
            return(req.CreateResponse(HttpStatusCode.OK, response));
        }