public CreateBookCommandHandler(BookEditorContext context) { _context = context; _mapper = new MapperConfiguration(cfg => { cfg.CreateMap <Domain.Book, BookDto>().ReverseMap(); cfg.CreateMap <Domain.Author, AuthorDto>().ReverseMap(); }).CreateMapper(); }
public GetBooksQueryHandler(BookEditorContext context) { _context = context; _mapper = new MapperConfiguration(cfg => { cfg.CreateMap <Domain.Author, IdentityAuthorDto>(); cfg.CreateMap <Domain.Book, IdentityBookDto>(); }).CreateMapper(); }
public DeleteBookCommandHandler(BookEditorContext context) { _context = context; }
public ReplaceAuthorCommandHandler(BookEditorContext context) { _context = context; }
public CreateAuthorCommandHandler(BookEditorContext context) { _context = context; }