public async Task <ActionResult <Artist> > CreateAsync([FromBody] Artist artist) { await _artistService.CreateAsync(artist); return(CreatedAtAction(nameof(GetAsync), new { id = artist.Id }, artist)); }
public async Task <ActionResult> Post([FromBody] Artist artist) => Ok(await _artistService.CreateAsync(artist));