Пример #1
0
 public Hotel GetHotelById(int id)
 {
     return(_hotelDal.Get(p => p.Id == id));
 }
Пример #2
0
 public IDataResult <Hotel> GetById(int id)
 {
     return(new SuccessDataResult <Hotel>(_hotelDal.Get(h => h.hotelId == id), Messages <Hotel> .Got));
 }
Пример #3
0
 public async Task <Hotel> GetByIdHotel(int id)
 {
     return(await hotelDal.Get(x => x.Id == id));
 }
Пример #4
0
 public Hotel Get(Expression <Func <Hotel, bool> > filter)
 {
     return(_hotelDal.Get(filter));
 }
Пример #5
0
 /// <summary>
 /// <inheritdoc/>
 /// </summary>
 public IDataResult <Hotel> GetById(int id)
 {
     return(new SuccessDataResult <Hotel>(_hotelDal.Get(x => x.Id == id)));
 }