public DeclarationEmployeurController(IAnnexeService <TL, TP> annexeService) { if (annexeService == null) { throw new ArgumentNullException(nameof(annexeService)); } _annexeService = annexeService; }
public AnnexeController(IAnnexeService service, IMapper mapper) { this.service = service ?? throw new ArgumentNullException(nameof(service)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }