Exemple #1
0
 public VetsController(IVetRepository vetRepository
                       , IMapper mapper)
 {
     _vetRepository = vetRepository ??
                      throw new ArgumentNullException(nameof(vetRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
Exemple #2
0
 public VetsModel(IVetRepository vetRepository)
 {
     _vetRepository = vetRepository;
 }