public Book Map(MarvelSharp.Model.Comic source) { return(new Book { ImageUrl = source.GetImageUrl(), ReadUrl = source.GetReaderUrl(), SourceItemID = source.Id, Creators = source.GetCreators(), OnSaleDate = source.GetOnSaleDate(), Title = source.Title, Number = source.IssueNumber }); }
public BookUpdate MapToUpdate(MarvelSharp.Model.Comic source) { return(new BookUpdate { ImageUrl = source.GetImageUrl().Secure(), ReadUrl = source.GetReaderUrl().Secure(), SourceItemID = source.Id, Creators = source.GetCreators(), OnSaleDate = source.GetOnSaleDate(), Title = source.Title, Number = source.IssueNumber, BookTypeName = "Issues" }); }