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)); }
public async Task <Reservation> GetAsync(IReservationIdentity reservationId) { var result = await this.Get(reservationId); return(this.Mapper.Map <Reservation>(result)); }
public Task <Reservation> GetAsync(IReservationIdentity reservation) { return(this.ReservationDataAccess.GetAsync(reservation)); }