Пример #1
0
        // GET api/<controller>/5
        public Dictionary <string, bool> Get(string candidate)
        {
            /*
             * { "exists": true}
             */

            Dictionary <string, bool> answer = new Dictionary <string, bool>();

            answer.Add("exists", repo.UsernameExists(candidate));

            return(answer);
        }