public async Task <IEnumerable <Rooms> > GetRooms(string roomTypeName)
        {
            var roomType = await _roomTypeRepository.GetRoomType(roomTypeName);

            return(await _roomRepository.GetRooms(roomType.ID));
        }
예제 #2
0
 public async Task <RoomTypes> GetRoomType(short id)
 {
     return(await _roomTypeRepository.GetRoomType(id));
 }