public ActionResult <Artist> Create([FromBody] Artist newProd) { try { return(Ok(_service.Create(newProd))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Artist> Create([FromBody] Artist newArtist) { try { Artist artist = _service.Create(newArtist); return(Ok(artist)); } catch (Exception e) { return(BadRequest(e.Message)); } }