public ComicPageModel(ComicPageViewModel model) { PageTitle = model.PageTitle; PageNumber = model.PageNumber; Image = ImageConvertor.ConvertImageToByteArray(model.Image, ".jpg"); ComicBookId = model.WebcomicId; ComicBook = model.ComicBook; }
public ComicBookViewModel(ComicBookModel comic) { Title = comic.Title; WebcomicId = comic.EntityId; Author = comic.Author; Genre = comic.Genre; EditionNumber = comic.EditionNumber; Description = comic.Description; ComicPages = (List <ComicPageModel>)comic.ComicPages; if (ComicPages == null) { NumberOfPages = 0; } else { NumberOfPages = ComicPages.Count; } }
public ComicArchiveViewModel(ComicBookModel comicbook) { ComicBook = comicbook; }