Example #1
0
        public HttpResponseMessage PostGenre(GenreDto genre)
        {
            ControllerFactory.GetGenreController().Create(genre);
            var response = Request.CreateResponse<GenreDto>(HttpStatusCode.Created, genre);

            return response;
        }
Example #2
0
 public void PutGenre(GenreDto genre)
 {
     ControllerFactory.GetGenreController().Update(genre);
 }