Example #1
0
        public HttpResponseMessage <bool> Exists(string name, HttpRequestMessage request)
        {
            var  decodedMail = System.Text.Encoding.ASCII.GetString(Convert.FromBase64String(name));
            bool exists      = earthwatcherRepository.EarthwatcherExists(decodedMail);

            return(new HttpResponseMessage <bool>(exists)
            {
                StatusCode = HttpStatusCode.OK
            });
        }