Beispiel #1
0
        public IHttpActionResult Get(string title)
        {
            HttpStatusCode statusCode;
            string         id = m_metacriticService.GetId();
            string         ip = HttpExtensions.GetClientIP(Request);

            IMetacriticData[] result = m_metacriticService.GetResult(id, string.Format("/{0}/{1}", m_keyword,
                                                                                       title), ip, out statusCode);

            return(Content(statusCode, result));
        }
        public IHttpActionResult GetDetails(string title, string details, string offset = "",
                                            string limit = "")
        {
            HttpStatusCode statusCode;
            string         id = m_metacriticService.GetId();

            string ip = HttpExtensions.GetClientIP(Request);

            IMetacriticData[] result = m_metacriticService.GetResult(id,
                                                                     string.Format("/search/{0}/{1}?offset={2}&limit={3}", title, details, offset, limit),
                                                                     ip, out statusCode);

            return(Content(statusCode, result));
        }