public async Task <IActionResult> PostAsync([FromBody] ArtistInputModel value) { if (value == null) { return(BadRequest("Invalid input")); } var result = await _artistsService.AddAsync(value); if (result == null) { return(BadRequest("Artist not inserted")); } return(CreatedAtRoute("ArtistGetAsync", new { id = result.Id }, result)); }