コード例 #1
0
 public VisitStatesController(IVisitStateRepository repo,
                              IMapper map)
 {
     _visitStateRepository = repo
                             ?? throw new ArgumentNullException(nameof(repo));
     _mapper = map
               ?? throw new ArgumentNullException(nameof(map));
 }
コード例 #2
0
 public VisitStatesController(IVisitStateRepository visitStateRepo)
 {
     _visitStateRepo = visitStateRepo ??
                       throw new ArgumentNullException(nameof(visitStateRepo));
 }