public ActionResult <GenreApiModel> Post([FromBody] GenreApiModel input) { try { if (input == null) { return(BadRequest()); } return(StatusCode(201, _chinookSupervisor.AddGenre(input))); } catch (Exception ex) { return(StatusCode(500, ex)); } }
public ActionResult <GenreApiModel> Post([FromBody] GenreApiModel input) { try { if (input == null) { return(BadRequest()); } return(StatusCode(201, _chinookSupervisor.AddGenre(input))); } catch (Exception ex) { return(StatusCode(500, ex)); } }