示例#1
0
        public RoomDto GetRoom(int id)
        {
            var room = _roomRepository.Get(id);

            if (room == null)
            {
                return(null);
            }

            return(DTOMapper.GetRoomDto(room));
        }
示例#2
0
 public IEnumerable <RoomDto> GetAllRooms()
 {
     return(_roomRepository.Rooms.Select(x => DTOMapper.GetRoomDto(x)));
 }