Example #1
0
        // GET api/Shows/5
        public HttpResponseMessage Get(int id)
        {
            if (ShowService.Exists(id))
            {
                return(Request.CreateResponse(HttpStatusCode.OK, ShowService.Get(id).ConvertToDto()));
            }

            return(Request.CreateResponse(HttpStatusCode.NotFound));
        }