public ViewResult Edit(int id) { ViewArtist viewArtist = new ViewArtist(); viewArtist = Mapper.ArtistToViewArtist(artistDomainService.FindArtist(id)); return(View("EditArtist", viewArtist)); }
public void ChangeArtist(ViewArtist viewArtist) { Artist artist = artistDomainService.FindArtist(viewArtist.Id); artist = Mapper.EditArtistToArtist(viewArtist, artist); artist.Genre = genreDomainService.Get(viewArtist.Genre.Id); artistDomainService.ChangeArtist(); }