Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StayService"/> class.
 /// </summary>
 /// <param name="stayRepository"></param>
 public StayService(IStayRepository stayRepository, ILodgingRepository lodgingRepository, IAnimalRepository animalRepository)
 {
     _stayRepository    = stayRepository;
     _lodgingRepository = lodgingRepository;
     _animalRepository  = animalRepository;
 }
Exemple #2
0
 public StayController(IStayRepository stayRepository, IReferenceRepository referenceRepository)
 {
     this.stayRepo = stayRepository;
     this.refRepo  = referenceRepository;
 }
Exemple #3
0
 public StayService(IStayRepository stayRepository, IMapper <Stay, StayDto> mapper)
 {
     _stayRepository = stayRepository;
     _mapper         = mapper;
 }