public RoomDto GetRoom(int id) { var room = _roomRepository.Get(id); if (room == null) { return(null); } return(DTOMapper.GetRoomDto(room)); }
public IEnumerable <RoomDto> GetAllRooms() { return(_roomRepository.Rooms.Select(x => DTOMapper.GetRoomDto(x))); }