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

            return(dto);
        }
Example #2
0
 public static GenrDto ToGenrDto(this GenrBook a)
 {
     return(new GenrDto
     {
         Title = a.Genr.Title,
         Info = a.Genr.Info
     });
 }