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