public BookDto(Book book, int userBookId = 0)
 {
     this.id = book.Id;
     this.user = book.UserId;
     this.name = book.Name;
     this.language = ((LanguageType)book.Language).ToString();
     this.userBook = userBookId;
     this.bookWords = new List<int>();
 }
 public UserBookDto(UserBook userBook, Book book)
 {
     this.id = userBook.Id;
     this.user = userBook.UserId;
     this.book = userBook.BookId;
     this.learnLevels = userBook.LearnLevels;
     this.learnDates = userBook.LearnDates;
     this.examDates = userBook.ExamDates;
     this.promoteDates = userBook.PromoteDates;
     this.BookDto = new BookDto(book, id);
     this.translations = new Dictionary<string, List<int>>();
 }