Exemple #1
0
 public BookEditVm(Book book)
 {
     BookId = book.Id;
     Code = book.Code;
     Title = book.Title;
     Author = book.Author;
     Description = book.Description;
 }
Exemple #2
0
 public BookHistoryVm(Book book)
 {
     BookId = book.Id;
     BookCode = book.Code;
     BookTitle = book.Title;
     BookAuthor = book.Author;
     BookDescription = book.Description;
     BookHistoryList = new List<BookHistoryItemVm>();
     BookTags = book.Tags == null ? null : book.Tags.Select(x => x.Name).ToList();
 }
Exemple #3
0
 public BookTagVm(Book book)
 {
     Id = book.Id;
     Code = book.Code;
     Title = book.Title;
     Author = book.Author;
     Description = book.Description;
     HasCover = book.HasCover;
     BookTags = book.Tags == null ? null : book.Tags.Select(x => x.Name).ToList();
 }