public static ProfileListPartialViewModel Initialize(this ProfileListPartialViewModel model, UserMangaList userMangaList) { model.Initialize(userMangaList as UserList); model.ControllerName = "Manga"; model.Titles = userMangaList.Manga.Select(m => new TitlePreviewViewModel().Initialize(m.Manga)).ToList(); return(model); }
public static ProfileListPartialViewModel Initialize(this ProfileListPartialViewModel model, UserAnimeList userAnimeList) { model.Initialize(userAnimeList as UserList); model.ControllerName = "Anime"; model.Titles = userAnimeList.Anime.Select(a => new TitlePreviewViewModel().Initialize(a.Anime)).ToList(); return(model); }