public Hotel GetHotelById(int id) { return(_hotelDal.Get(p => p.Id == id)); }
public IDataResult <Hotel> GetById(int id) { return(new SuccessDataResult <Hotel>(_hotelDal.Get(h => h.hotelId == id), Messages <Hotel> .Got)); }
public async Task <Hotel> GetByIdHotel(int id) { return(await hotelDal.Get(x => x.Id == id)); }
public Hotel Get(Expression <Func <Hotel, bool> > filter) { return(_hotelDal.Get(filter)); }
/// <summary> /// <inheritdoc/> /// </summary> public IDataResult <Hotel> GetById(int id) { return(new SuccessDataResult <Hotel>(_hotelDal.Get(x => x.Id == id))); }