public AccountingBookController(IServiceProvider serviceProvider) { _identityService = serviceProvider.GetService <IIdentityService>(); _validateService = serviceProvider.GetService <IValidateService>(); _service = serviceProvider.GetService <IAccountingBookService>(); _mapper = serviceProvider.GetService <IMapper>(); }
public AccountingBookController(IAccountingBookService accountingBookService) { this.accountingBookService = accountingBookService; }