Exemple #1
0
 public HotelRoomRepository(IMapper mapper, IHotelReservationContext context) : base(context)
 {
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public HotelRoomImageRepository(IHotelReservationContext context) : base(context)
 {
 }
 protected BaseRepository(IHotelReservationContext context)
 {
     Context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public ReservationRepository(IMapper mapper, IHotelReservationContext context) : base(context)
 {
     _mapper   = mapper ?? throw new ArgumentNullException(nameof(mapper));
     isEnvProd = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Production";
 }