public async Task <ActionResult <BandArtist> > PostBandArtist(BandArtist bandArtist) { _uow.BandArtistRepository.Create(bandArtist); await _uow.Save(); return(CreatedAtAction("GetBandArtist", new { id = bandArtist.BandArtistID }, bandArtist)); }
public async Task <IActionResult> PutBandArtist(int id, BandArtist bandArtist) { if (id != bandArtist.BandArtistID) { return(BadRequest()); } _uow.BandArtistRepository.Update(bandArtist); await _uow.Save(); return(NoContent()); }