Пример #1
0
 public static Review ToClient(this ReviewDb @this)
 {
     return(new Review(
                id: @this.Id,
                name: @this.Name,
                bookId: @this.BookId,
                score: @this.Score));
 }
 public ReviewRepository(ReviewDb context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }