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