Exemple #1
0
        public HttpResponseMessage Get(string genreStyle)
        {
            var genre = _genreServices.GetGenreByName(genreStyle);

            if (genre != null)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, genre));
            }
            return(Request.CreateErrorResponse(HttpStatusCode.NoContent, genreStyle + " is not found"));
        }