Exemple #1
0
        public HttpResponseMessage GetWeather(Weather weather)
        {
            string s        = CodingChallengeBLL.GetWeather(weather.City);
            var    response = new HttpResponseMessage()
            {
                Content = new StringContent(s)
            };

            return(response);
        }
Exemple #2
0
        public HttpResponseMessage GetRandomWeather()
        {
            string s        = CodingChallengeBLL.GetRandomWeatherCity();
            var    response = new HttpResponseMessage()
            {
                Content = new StringContent(s)
            };

            return(response);
        }
Exemple #3
0
        public HttpResponseMessage Register(User user)
        {
            string s        = CodingChallengeBLL.Register(user);
            var    response = new HttpResponseMessage()
            {
                Content = new StringContent(s)
            };

            return(response);
        }