public List <Room> GetAllRooms() { try { List <Room> rooms = roomsRepository.GetAllRoomDetails(); if (rooms != null) { return(rooms); } else { throw new NotFoundException($"This Note id not found"); } } catch (Exception ex) { throw; } }