Пример #1
0
        // GET: api/Tweeter/5
        public Dictionary <string, bool> Get(string candidate)
        {
            //{"exists": true} best to return JSON structure
            Dictionary <string, bool> answer = new Dictionary <string, bool>();

            answer.Add("exists", repo.UserNameExists(candidate));
            return(answer);

            //return repo.UserNameExists(candidate);
        }