Ejemplo n.º 1
0
 public HorseController(SportBetsContext context,
                        IHorseFinder horseFinder,
                        IUnitOfWork unitOfWork,
                        IRepository <Horse> repository,
                        IHorseService horseService)
 {
     _context      = context;
     _horseFinder  = horseFinder;
     _unitOfWork   = unitOfWork;
     _repository   = repository;
     _horseService = horseService;
 }
Ejemplo n.º 2
0
 public HorseService(IUnitOfWork unitOfWork, IHorseFinder horseFinder, IRepository <Horse> horseRepository)
 {
     _unitOfWork      = unitOfWork;
     _horseFinder     = horseFinder;
     _horseRepository = horseRepository;
 }