示例#1
0
 public BookResourceAssembler(IBookService bookService,
                              Lazy <AuthorResourceAssembler> authorAssemblerLazy,
                              LendingRecordResourceAssembler lendingRecordAssembler,
                              IUrlProvider urlProvider)
     : base(urlProvider)
 {
     BookService            = bookService;
     _authorAssemblerLazy   = authorAssemblerLazy;
     LendingRecordAssembler = lendingRecordAssembler;
 }
 public BorrowController(ILendingService lendingService, LendingRecordResourceAssembler recordAssembler)
 {
     LendingService  = lendingService;
     RecordAssembler = recordAssembler;
 }
示例#3
0
 public LendingRecordController(ILendingService lendingService, LendingRecordResourceAssembler assembler)
 {
     LendingService  = lendingService;
     RecordAssembler = assembler;
 }