public static string GetBookTitle(this SeriesBook book)
 {
     return(book.BookTypeID == 1
         ? $"#{book.Number}"
         : book.BookTypeID == 2
         ? $"Vol. {book.Number}"
         : "");
 }
Exemplo n.º 2
0
 public Comic Map(SeriesBook source)
 {
     return(new Comic
     {
         Id = source.Id,
         Title = source.Title,
         IssueTitle = source.GetBookTitle(),
         TypeID = source.BookTypeID,
         IsRead = source.IsRead,
         ImageUrl = source.ImageUrl,
         ReadUrl = source.ReadUrl,
         IssueNumber = source.Number,
         Hidden = source.Hidden
     });
 }