public GameViewModel(AddGameViewModel addGameViewModel) { Name = addGameViewModel.Name; Slug = addGameViewModel.Slug; Summary = addGameViewModel.Summary; Storyline = addGameViewModel.Storyline; Cover = addGameViewModel.Cover; Artworks = addGameViewModel.Artworks; Screenshots = addGameViewModel.Screenshots; }
public Game(AddGameViewModel addGameViewModel) { DbId = new DbId(addGameViewModel.DbId); Name = addGameViewModel.Name; Slug = addGameViewModel.Slug; Summary = addGameViewModel.Summary; Cover = addGameViewModel.Cover; Platforms = addGameViewModel.Platforms; //FirstReleaseDate = addGameViewModel.FirstReleaseDate; Storyline = addGameViewModel.Storyline; Esrb = addGameViewModel.Esrb; Pegi = addGameViewModel.Pegi; Screenshots = addGameViewModel.Screenshots; Artworks = addGameViewModel.Artworks; GenreIds = addGameViewModel.GenreIds; DeveloperIds = addGameViewModel.DeveloperIds; PublisherIds = addGameViewModel.PublisherIds; if (Cover == null) { Cover = new GameImage(); Cover.Url = ""; } }