Ejemplo n.º 1
0
 private async Task <Entities.Reservation> Get(IReservationIdentity reservationId)
 {
     //TODO
     if (reservationId == null)
     {
         throw new ArgumentNullException(nameof(reservationId));
     }
     return(await this.Context.Reservation.Include(x => x.Club).Include(x => x.Group).FirstOrDefaultAsync(x => x.Id == reservationId.Id));
 }
Ejemplo n.º 2
0
        public async Task <Reservation> GetAsync(IReservationIdentity reservationId)
        {
            var result = await this.Get(reservationId);

            return(this.Mapper.Map <Reservation>(result));
        }
Ejemplo n.º 3
0
 public Task <Reservation> GetAsync(IReservationIdentity reservation)
 {
     return(this.ReservationDataAccess.GetAsync(reservation));
 }