Пример #1
0
 public PoliceController(IMapper mapper,
                         IPolicemanRepository pmRepo,
                         ICitizenUserRepository cuRepo, IViolationRepository violationRepo)
 {
     this.mapper        = mapper;
     this.pmRepo        = pmRepo;
     this.cuRepo        = cuRepo;
     this.violationRepo = violationRepo;
 }
Пример #2
0
 public ViolationController(
     IMapper mapper,
     IViolationRepository violationRepo,
     ICitizenUserRepository userRepo,
     IPolicemanRepository policeRepository)
 {
     this.mapper           = mapper;
     this.violationRepo    = violationRepo;
     this.userRepo         = userRepo;
     this.policeRepository = policeRepository;
 }
Пример #3
0
 public ViolationService(IViolationRepository violationRepository, IVehicleRepository vehicleRepository)
 {
     _violationRepository = violationRepository;
     _vehicleRepository   = vehicleRepository;
 }
Пример #4
0
 public ViolationService(IViolationRepository violationRepository)
 {
     _violationRepository = violationRepository;
 }
 public ViolationController(IPostRepository postRepo, IUserRepository userRepo, IViolationRepository violationRepository)
 {
     this.userRepository      = userRepo;
     this.postRepository      = postRepo;
     this.violationRepository = violationRepository;
 }