public async Task <IActionResult> Create(Song song) { var created = await _songService.CreateAsync(song); if (created) { return(CreatedAtAction(nameof(Get), new { id = song.Id }, song)); } return(Ok(song)); }
public async Task <IActionResult> Create(Song song) { var created = await _songService.CreateAsync(song); if (created) { return(CreatedAtAction(nameof(Get), new { id = song.Id }, song)); } return(Ok(song)); }