Ejemplo n.º 1
0
        public HttpResponseMessage AddMovie([FromBody] AddGenreRequest request)
        {
            var response = apiService.AddGenre(request);

            if (response == true)
            {
                return(Request.CreateResponse <bool>(HttpStatusCode.OK, response));
            }
            else
            {
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, " Genre Not Added"));
            }
        }