Example #1
0
 public static MovieSet MovieModel2MovieSet(Movie movie)
 {
     MovieSet movieSet = null;
     if (movie != null)
     {
         movieSet = new MovieSet();
         movieSet.ID = movie.ID;
         movieSet.Title = movie.Title;
         movieSet.ImageUrl = movie.ImageUrl;
     }
     return movieSet;
 }
Example #2
0
 public static Movie MovieSet2MovieModel(MovieSet movieSet)
 {
     Movie movie = null;
     if (movieSet != null)
     {
         movie = new Movie();
         movie.ID = movieSet.ID;
         movie.Title = movieSet.Title;
         movie.ImageUrl = movieSet.ImageUrl;
         movie.ReleaseYear = movieSet.ReleaseDate.Year;
     }
     return movie;
 }