Beispiel #1
0
 internal static PersonItem ToPersonItem(this Dto.Search.Result person)
 {
     return(new PersonItem
     {
         Id = person.Id ?? 0,
         Name = person.Name,
         ProfilePath = person.ProfilePath,
     });
 }
Beispiel #2
0
 internal static MovieItem ToMovieItem(this Dto.Search.Result movie)
 {
     return(new MovieItem
     {
         BackdropPath = movie.BackdropPath,
         Id = movie.Id ?? 0,
         Overview = movie.Overview,
         Popularity = movie.Popularity ?? 0,
         PosterPath = movie.PosterPath,
         VoteAverage = movie.VoteAverage ?? 0,
         Title = movie.Title
     });
 }