示例#1
0
        public static GenrBookDto FroGenrBookDto(this GenrBookDto dto, GenrBook a)
        {
            dto.Book = a.Book.ToBookDto();
            dto.Genr = a.Genr.ToGenrDto();

            return(dto);
        }
示例#2
0
 public static GenrBook ToGenrBook(this GenrBookDto dto)
 {
     return(new GenrBook()
     {
         Book = dto.Book.ToBook(),
         Genr = dto.Genr.ToGenr()
     });
 }