Пример #1
0
        public ViewResult Edit(int id)
        {
            ViewArtist viewArtist = new ViewArtist();

            viewArtist = Mapper.ArtistToViewArtist(artistDomainService.FindArtist(id));
            return(View("EditArtist", viewArtist));
        }
Пример #2
0
        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();
        }