public BookEditVm(Book book) { BookId = book.Id; Code = book.Code; Title = book.Title; Author = book.Author; Description = book.Description; }
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(); }
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(); }