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

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

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

            return(response);
        }