Пример #1
0
 public BookController(IBookRepository bookRepository, IEditorialRepository editorialRepository, IAuthorRepository authorRepository, IMapper mapper)
 {
     _bookRepository      = bookRepository;
     _editorialRepository = editorialRepository;
     _authorRepository    = authorRepository;
     _mapper = mapper;
 }
Пример #2
0
 public AutorService(IAutorRepository autorRepository,
                     IEditorialRepository editorialRepository,
                     IMapperDependency mapperDependency)
 {
     _autorRepository     = autorRepository;
     _editorialRepository = editorialRepository;
     _mapper = mapperDependency.GetMapper();
 }
Пример #3
0
 public UnitOfWork(IEditorialRepository editorialRepository,
                   IBookRepository bookRepository,
                   IAuthorRepository authorRepository,
                   Context context)
 {
     EditorialRepository = editorialRepository;
     BookRepository      = bookRepository;
     AuthorRepository    = authorRepository;
     this.context        = context;
 }
Пример #4
0
 public BookService(IBookRepository bookRepository,
                    IEditorialRepository editorialRepository,
                    IAutorRepository autorRepository,
                    IMapperDependency mapperDependency)
 {
     _bookRepository      = bookRepository;
     _editorialRepository = editorialRepository;
     _autorRepository     = autorRepository;
     _mapper = mapperDependency.GetMapper();
 }
 public EditorialService(IUnitOfWork unitOfWork, IEditorialRepository editorialRepository)
     : base(unitOfWork, editorialRepository)
 {
     _unitOfWork          = unitOfWork;
     _editorialRepository = editorialRepository;
 }
Пример #6
0
 public EditorialController(IEditorialRepository editorialRepository, IMapper mapper)
 {
     _editorialRepository = editorialRepository;
     _mapper = mapper;
 }
Пример #7
0
 public EditorialServices(IEditorialRepository repository)
 {
     _repository = repository;
 }
Пример #8
0
 public EditorialService(IEditorialRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }